Java Development Kit 8
Docker and Docker Compose (Optional)
Browser
Java 8
Apache Maven 3
Spring
Swagger
MySQL Database 5.7
H2 Database
- To set a profile you must change the active profile
src/main/resources/application.yml
to one of these valuesdev
,prod
,test
. Example:
# Setting Up Dev Profile Configuration
spring:
profiles:
active: dev
- To start the server execute:
$ ./mvnw spring-boot:run
If you are using Windows execute
.\mvnw spring-boot:run
in the terminal.
- Application endpoints documentation in http://localhost:8080/swagger-ui.html.
You can access http://localhost:8080/h2-console for manage the H2 Database, use
jdbc:h2:mem:camping-fire
in JDBC URL field.
The Dev Profile requires Docker and Docker Compose.
- Start the MySQL Database with Docker Compose:
$ docker-compose up
You need to be in the project root directory to execute.
- To start the server execute:
$ ./mvnw spring-boot:run
If you are using Windows execute
.\mvnw spring-boot:run
in the terminal.
- Application endpoints documentation in http://localhost:8080/swagger-ui.html.
You can access http://localhost phpMyAdmin for manage the MySQL Database.
Pablo Matheus - https://www.linkedin.com/in/pablo-lima-araujo
MIT License, see more information in LICENSE.md.