Skip to content

Todo application using spring boot and docker with hotreload

Notifications You must be signed in to change notification settings

makrandp/spring-boot-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Spring boot Todo app using docker with hot reload using spring boot dev-tools

Setup

  • docker-compose up --force-recreate
  • In Eclipse:
    • Go to Run -> Run Configurations -> Java Application -> New
    • Choose org.springframework.boot.devtools.RemoteSpringApplication as the main class
    • Choose todo-app as the project
    • Set http://localhost:80 to program arguments

Useful Commands

  • docker-compose up --force-recreate -d
  • docker-compose start
  • docker-compose stop
  • docker-compose down --rmi all

APIs

  • curl --request GET --url http://localhost/todo
  • curl --request POST \ --url http://localhost/todo \ --header 'content-type: application/json' \ --data '{ "title" : "Title", "description" : "Description" }'
  • curl --request PUT \ --url http://localhost/todo/1 \ --header 'content-type: application/json' \ --data '{ "title": "Modified Title", "description": "Modified Description" }'
  • curl --request DELETE \ --url http://localhost/todo/1

Releases

No releases published

Packages

No packages published