git clone git@github.com:Elorolf/cleantogather-api.git
cd cleantogather-api
docker-compose up -d
The docker-compose up -d
command starts 2 containers : a MySQL database already configured with the good env. variables and a phpmyadmin container accessible on http://localhost:8081/ with the following identifiers : user = "user" ; password = "password".
If you don't have docker and docker-compose installed on your machine you need to launch a MySQL database and configure the env. variables in ./src/main/resources/application.properties
like this :
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:0.0.0.0}:3306/cleantogather
spring.datasource.username=user
spring.datasource.password=password
After launched the database you can start the api service :
./mvnw spring-boot:run
That's it the API started in development mode.
Open http://localhost:8080/swagger-ui.html to view the REST api documentation.
Now you can install and start the front-end : cleantogather-front
This project was made with Spring Boot.
To learn more about Spring Boot, check out:
Spring Boot documentation
Spring Boot guides