This API was developed using the stacks:
- Kotlin 1.6
- JVM 11
- 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_BUILDKIT=1 docker-compose -f ./docker/local/postgresql/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.html
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
client-id: your-client-id
client-secret: your-client-secret