install.sh
- installs JDK 1.8, maven, sets properties to localhost for local deploymentrun.sh {start|status|stop}
- for backend apps, keycloak, haproxy and postgrestest.sh
- runs integrations tests on the locally set up backend
-
Go to docker directory:
cd docker
-
Run composer:
docker compose up
-
Initialize database (Windows: use WSL)
docker exec -i postgres pg_restore -U sms -v -d sms < db_dump_text
- Go to
config/scripts/values.properties
and set:WEB_HOST=localhost
DATABASE_HOST=localhost
mvn clean install -Pbuild
or you can click on clean and then install in the maven gui for intellij IDEA under the sms-backend module with thebuild
profile checked- Create a new intellij run configuration and choose the jar application type, then set the target to the built jar files
- Now you can run all 5 of the backend services
mvn clean install -Pintegration-tests
to run tests