- Java 11
- Spring Boot (Spring Web)
- Spring Security (stateless with JWT and roles)
- JPA (hibernate)
- Javax Validations to validate the properties of the entities in the requests.
- PostgreSQL 14 + pgAdmin (with docker)
- OpenAPI 3 springdoc
- ModelMapper (for mapping dtos to jpa entities easily)
# up containers
$ docker-compose up -d postgres pgadmin
# down containers
$ docker-compose down
docker build -t jeanp0/rest-api-spring-boot .
Run a postgres, pgadmin and spring-app images with docker-compose. The spring-app image is built automatically if it doesn't exist.
# up containers
$ docker-compose up -d
# down containers
$ docker-compose down
# view logs
$ docker-compose logs -f