- Java 17 using spring boot 3.1.2
- Flyway for creating a managing tables
- Postgresql for database.
- Swagger for API documentation
- JUnity and Mockito for unity testing.
- Create your
application.properties
file following theapplication.properties-sample
, mapping your own DB. - Build and run using following maven commands:
mvn clean install
mvn spring-boot:run
There a few endpoints implemented in this API:
-
Use the endpoint
api/v1/minute
end to create a minute, also that would a time frame for voting, the default value is 1 minute, but it can be set by adding the fieldduration
. -
Vote using the endpoint
api/v1/minute/{idMinute}/vote
while the "session" is still available. -
Get result in the endpoint
api/v1/minute/{idMinute}/result