Spring Boot Framework Demo Project
Basic REST application in Java - Spring Boot which generates the HTTP request that performs CRUD operations on the JSON data. Dockerized and published within github workflow
docker pull ghcr.io/egebozdemir/habit-tracker:main
docker run -p 8080:8080 ghcr.io/egebozdemir/habit-tracker:main
curl -H "Content-Type: application/json" -X POST http://localhost:8080/habits -d "{\"name\": \"make the bed\"}"
curl -H "Content-Type: application/json" -X POST http://localhost:8080/habits -d "{\"name\": \"walk the dog\"}"
curl -H "Content-Type: application/json" -X POST http://localhost:8080/habits -d "{\"name\": \"brush teeth\"}"
curl -H "Content-Type: application/json" -X POST http://localhost:8080/activities -d "{\"habitId\": \"1\"}"
curl -H "Content-Type: application/json" -X POST http://localhost:8080/activities -d "{\"habitId\": \"2\"}"
Go to "localhost:8080/h2-console" in your browser after the application stands up
Credentials are in "/src/main/resources/application.properties"