- Create an empty database
- Run the following command from the base of your cloned directory to create the required database structure:
mysql --host=<localhost> --user=<your_username> --password=<your_password> <your_database_name> < employeesdb.sql
- The following environment variables need to be set to enable database connection:
DB_USERNAME
DB_PASSWORD
DB_HOST
DB_NAME
- Run
mvn clean install -DskipTests=true
to build your application - Start application with
java -jar target/JavaWebService-1.0-SNAPSHOT.jar server config.yml
- To check that your application is running enter url
http://localhost:8080
To see your applications Swagger UI http://localhost:8080/swagger
- Run
mvn clean test
to run unit tests - Run
mvn clean integration-test
to run integration tests