- Click on 'Edit Configurations' under your Run/Debug Configuration
- In the application run configuration, where it says 'Environment variables' paste in the following: USER=NameS;PASSWORD=password;DATABASE=ea_agile_sprint_NameS;HOST=academy2020.cpc8rvmbbd9k.eu-west-2.rds.amazonaws.com
- Change the variables to match yours where needed
- Click Apply and OK
- Run
mvn clean installto build your application - Start application with
java -jar target/ea-agile-sprint-api-1.0-SNAPSHOT.jar server config.yml - To check that your application is running enter url
http://localhost:8080
- To run all the tests in the project, run
mvn clean test - To run all the tests in a class, run
mvn clean test -Dtest=your.package.TestClassName - To run a particular unit/integration test, run
mvn clean test -Dtest=your.package.TestClassName#particularMethod
This application has implemented Swagger documentation, which can be viewed at http://localhost:8080/swagger/
To see your applications health enter url http://localhost:8081/healthcheck