- Define dependencies in build.gradle
- Create a Spring Boot Main @SpringBootApplication
- Create components @Entity / @RestController / @Repository
- Create application.properties
- Build
- Check app using curls
./gradlew build
docker-compose up --build
docker-compose down <- down docker compose
curl -s -X POST
http://localhost:8080/user/save
-H 'Content-Type: application/json'
-d '{"name":"Your Name"}'
curl -s -X GET
http://localhost:8080/user/1
english: https://experto.dev/en/spring-boot-with-postgresql-and-docker-compose/
spanish: https://experto.dev/spring-boot-postgresql-docker-compose/