This project provides to CRUD operations for users and users' tasks.
- Java 11
- Spring Boot
- Spring Data
- H2 Database
- Documented on Swagger
- Maven
- Dockerized and published on Docker Hub
- Unit tests using JUnit and Mockito
There are 5 endpoints in user-controller:
There are 5 endpoints in task-controller:
To install this application, run the following commands:
git clone https://github.com/devSuatt/todoApp-fullStack.git
You can run unit tests in src/test/java/com/devsuatt/todoApp
- For maven usage
$ mvn clean install
$ mvn spring-boot:run
Swagger UI will be run on this url
http://localhost:${PORT}/swagger-ui.html
You can pull this application from Docker Hub
Link: https://hub.docker.com/r/devsuatt16/todoapp
docker pull devsuatt16/todoapp
docker build --compress --force-rm -t {Docker_Hub_Username}/{Docker_Hub_RepoName}:{Tag} .
Example: docker build . -t todoapp:1.0
Run Docker image locally on a container with a name for the container.
docker run --name todoapp -d -p 9090:8080 todoapp:1.0