This is a maven project for Task management which uses an embedded derby database to store tasks in a table.
- Java 8 or higher needs to be installed on the system and environment variable JAVA_HOME should be set correctly to the JDK path.
Check by running below command in command prompt
java -version - Maven needs to be installed on the system.
Check by running below command in command prompt
mvn -v
This project uses Tomcat as an embedded container to host the web application.
Goto the base folder of the application and execute the following command to launch the application.
mvn spring-boot:run
mvn clean package to compile and generate the artifact. Also, it creates a code coverage report in target/site/jacoco/index.html
java -jar target/task-api.jar to run the application via command line.
For both ways to run the application above, the application will be available at http://localhost:8080/task-management/api/v1
mvn test to run unit tests.
task-management-api.postman_collection.json
To download the yaml file http://localhost:8080/task-management/api/v1/api-docs
swagger-ui http://localhost:8080/task-management/api/v1/swagger-ui/index.html