Skip to content

pablo-matheus/camping-fire-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camping Fire

Prerequisites

Java Development Kit 8
Docker and Docker Compose (Optional)
Browser

Technologies

Java 8
Apache Maven 3
Spring
Swagger
MySQL Database 5.7
H2 Database

Instructions

Setting Profiles

  • To set a profile you must change the active profile src/main/resources/application.yml to one of these values dev, prod, test. Example:
# Setting Up Dev Profile Configuration
spring:
  profiles:
    active: dev

Running with Test Profile

  • To start the server execute:
$ ./mvnw spring-boot:run

If you are using Windows execute .\mvnw spring-boot:run in the terminal.

You can access http://localhost:8080/h2-console for manage the H2 Database, use jdbc:h2:mem:camping-fire in JDBC URL field.

Running with Dev Profile

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.

You can access http://localhost phpMyAdmin for manage the MySQL Database.

Author

Pablo Matheus - https://www.linkedin.com/in/pablo-lima-araujo

License

MIT License, see more information in LICENSE.md.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages