- Spring Boot
- Spring Data JPA
- Docker
- H2 Database
- For Testing
- User CRUD
- DTO (Data Transfer Object)
- Docker
- Tests
- Controller
- Service
- Repository
Follow this steps to run the project
-
mvn clean install
- to build the project and download all maven dependencies
-
mvn spring-boot:run
- to start the server
-
mvn test
- to run the tests
To run docker, execute the commands below:
-
Execute the command to compile the project and generate .jar file
- mvn clean package
-
Use the Docker command to create a Docker image
-
docker build -t [name] .
- t: Name and tag for the docker image
- . : The context for the build process
-
-
Run the container
- docker run -p 8080 'your-application-name'
-
Test the application
- Access the application using the browser
- http://localhost:8080