Skip to content

tonycituk/javongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Javongo β˜•πŸƒ

Gitmoji

Springboot CRUD api using containerized mongoDB. Feel free to use it as an example for your projects.

Running

Make sure ports 27017 & 8080 are available.

mongoDB

javongo/

mkdir -p mongodb/db
docker-compose up -d

Springboot

javongo/javongo/

./gradlew bootRun

API Reference

Server should be running on localhost:8080.

Get all javongos

  GET /javongos

Get javongo

  GET /javongo/${id}
Parameter Type Description
id string Required. Id of javongo to fetch

Add javongo

  POST /javongo

Request body

{
  "message": "<your-javongo-message>"
}
Parameter Type Description
message string Required. Message of new javongo

Update javongo

  PUT /javongo/${id}

Request body

{
  "message": "<your-javongo-message>"
}
Parameter Type Description
id string Required. Id of javongo to update
message string Required. Message of updated javongo

Remove javongo

  DELETE /javongo/${id}
Parameter Type Description
id string Required. Id of javongo to remove

Stopping

javongo/

docker-compose down -v

You can kill the springboot process, pressing Ctrl + c in the terminal where the procces is running.

Made with πŸ’— and </>.

About

Springboot CRUD api using containerized mongoDB. β˜•πŸƒπŸ“¦

Topics

Resources

Stars

Watchers

Forks