Java backend - intive/patronage21-qa GitHub Wiki

Java backend

Tools required to run the application

Steps to run the application

  1. Clone the repository to your desktop ('git bash here' in the place where you want to download the repository)

git clone https://github.com/intive/patronage21-java.git

  1. Go to root directory

cd patronage21-java

  1. Change branch to dev

git checkout dev

  1. Start the docker container

docker-compose up -d

  1. Build the project with Gradle (run command prompt in the directory "patronage21-java")

gradlew build

If the application was built successfully, you will see the message "BUILD SUCCESSFUL".

  1. Run the application

gradlew bootRun

or

cd build/libs

java -jar patronative-0.0.1-SNAPSHOT.jar

If the application was run successfully, you will see the message "Started Patronative Application".

After that, you will be able to access it at http://localhost:8080.

All available endpoints and parameters can be found in Swagger: http://localhost:8080/swagger-ui.html