Building and running tests on last PR or commit
Building, running tests, building maven artifacts, docker images and publishing to artifactory
Building and publishing FE docker image (https://github.com/ArturJarosz/Task-FE)
To make full environment running, go to the docker directory:
cd dockerand then lunch docker compose script with needed flags, like this:
./app-up.sh -e local -v 0.6.2-SNAPSHOT -b fullFor more help with script run with -h (help) flag:
./app-up.sh -hThat script uses matching .env with passed environment (for local it will be local.env) located in /docker/env.
To make it work provide all needed environment variables there. You can uses example.env for full list of them.
Project requires JDK in version 17, Maven, and instance of Postgresql database.
Clone current repository locally:
git clone [email protected]:ArturJarosz/Task.gitImport whole project to your IDE. With the project there should be 4 templates to run SpringBoot application imported. Edit them to fill needed information like password, user and database and run them in order:
Drop and Init DBLoad sample data(optional if you need some data to test application).Run Task BE
If you have running version of the database with older version of application, you may want to run Update DB.
Please be aware that these run configurations use local.env file as well. So it might be a need that that file on your
system has to be prepared from scratch. You can use /docker/env/example.env as a template.
To run FE part of the application please follow instruction in corresponding
repository: https://github.com/ArturJarosz/Task-FE.