This API was developed using the stacks:
- Kotlin 1.7
- JVM 18
- Spring Boot
- Maven
- Docker
- Swagger
- jUnit5
- Mockito
First make sure that you have installed the docker-compose, run docker-compose command to build local postgresql database:
$ docker-compose -f ./docker/local/h2/docker-compose.yml up -d
Then run the application:
$ ./mvnw spring-boot:run
To access the project documentation, access the url:
http://localhost:8080/swagger-ui
To check API health you must GET url (authentication needed):
http://localhost:8080/actuator/health
$ ./mvnw test
You can play in localhost either by Swagger or importing postman collection.
Administrator username/password: admin/pass
Common user username/password: user/pass