This application shows a API REST to manage a particular storeroom.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need the following tools installed and configured in order to run this project locally:
- Simply 'git clone' the repository on your local machine through your favourite git client.
- Locate the cloned repository folder and use gradle command 'build' to compile and build the project (A 'gradle wrapper' is provided with the project).
cd storeroom-rest-api/
./gradlew build
- Run the project using gradle command 'bootRun' and wait for it to be ready:
./gradlew bootRun
- Check the 'health' status endpoint:
http://localhost:8100/health
In order to run unit and integrations tests locally you need execute the following 'gradle' commands:
Unit tests are executed every time you build the project and can be executed manually using:
./gradlew test
They are executed by Travis on every Pull Request and can be executed manually using:
./gradlew integrationTest