Check you are agree with the terms and conditions of contributor license agreements. Contributing
What you need:
-
Docker
Optional:
-
make
-
Maven & Java 14
-
Node 12
Below is what you will need to set up on your development machine.
cd code
code
is the directory where the code is placed.
We can find 2 subdirectories:
-
api
: contains the api server in maven / java 14 -
web-ui
: contains the web interface in node 12
In api
folder.
With Docker and make
# Install
make dkr-install
# Run
make dkr-run
With maven/java 14
# Install
make mvn-install
# Run
make mvn-run
or
# Install
mvn clean install
# Run
mvn -Pdev spring-boot:run -pl server
Note
|
The default database without maven profile is an h2 in memory database. Data will be lost when application will restart. By switching to dev profile with -Pdev h2 database will be persist in a file.
|
API is available at localhost:8080
, you can check this url http://localhost:8080/actuator/info to observe the API is up.
In web-ui
folder.
With Docker and make
# Install
make dkr-install
# Run
make dkr-run
With node 12
# Install
make mpm-install
# Run
make npm-run
or
# Install
npm install
# Run
npm run dev
WEB-UI is available at localhost:8081
, you can check this url http://localhost:8081 to observe the web-ui is up.
We have made some tools for developer with make
command.
You can find Makefile
in this directories:
-
code
: for general usage -
code/api
: for api usage -
code/web-ui
: for web-ui usage
You can check available command by running:
make
# or make help
In dev mode, modifications on a java entity model are applied with hibernate ddl update
mode.
In code
folder.
But it’s for dev usage. For production, we use liquibase. To automatically generate a diff liquibase file from java model, you can run:
make liquibase-diff DIFF_LABEL=XXX