Backend for keeping track of employee vaccination status inventory.
-
Java 8
-
Spring Boot 2.5.4
-
Postgres 11 running in a Docker container
-
Maven 3.6.3
-
Spring Boot OAuth2 Resource Server with JWT
-
Role Based Access Control (RBAC) with Spring Boot and JWT
-
Swagger UI (Swagger-OpenAPI 3) with Authentication
- JUnit 5
- MockMvc
- Mockito
Build image and run container with Docker Compose:
docker-compose up --build -d
Stop and remove networks and containers for services defined in the Compose file.
docker-compose down -v --remove-orphans
Then, compile and run the application.
Execute shell command inside container to initialize some sample records in the database:
docker exec -it dev-postgres bash
psql -U user_test -d db_test -a -f sample.sql
- Use
mvn clean install
in the project root directory to build the project. - Run the main class,
com.suprerapp.firstdemo.SuperappApplication
to start the application.
To test the application use the following administrator username and password:
- username: tom@acme.com
- password: 1234
- Swagger UI endpoint: http://localhost:8080/swagger-ui/index.html
- All Swagger Resources(groups): http://localhost:8080/swagger-resources
- Metadata endpoint: http://localhost:8080/v3/api-docs
For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely: