This project can be used as a base implementation for other API's.
- Implementation of DTO's
- API versioning
- Migrations with Flyway
- Content Negotioation (Json, XML, YAML)
- Implementation of Hateoas
- Swagger support
- Authentication with JWT and Spring Security
- Integration with Travis CI and docker-compose
- Configuration for CORS
- Pagination
- Upload and Download Files
- Java 11
- Apache Maven 3.6.3
- Postgres
- Eclipse (20-09)
To run on Eclipse it is necessary to adjust the database settings in the directory src/main/resources/application.properties
, change the following lines:
spring.datasource.url= jdbc:postgresql://URL_DB:PORT_DB/NAME_DB
spring.datasource.username=USER_DB
spring.datasource.password=PASSWORD_DB
Also, change Flyway credentials in the pom.xml file
<configuration>
<url>jdbc:postgresql://URL_DB:PORT_DB/NAME_DB?useTimezone=true&serverTimezone=UTC&useSSL=false</url>
<user>USER_DB</user>
<password>PASSWORD_DB</password>
</configuration>
Now just run Main.java as: Run as -> Java Application.
- Java 11
- Apache Maven 3.6.3
- Docker-Compose
Access the directory of docker-compose.yml
and exec the command sudo docker-compose up
Ronaldo Almeida – Linkedin – ronaldoalm1812@edu.unifor.br