- an api built with Gin framework and MongoDB as the database
- CRUD operations related to characters of Stranger Things tv series
- MVC pattern
GET
/charactersGET
/character/:characterIdPOST
/characterPUT
/character/:characterIdDELETE
/character/:characterId
configs
: project configuration filescontrollers
: application logicsmodels
: data and database logicsresponses
: files describing the response we want our API to giveroutes
: URL pattern and handler information
- run
go build -o bin/stranger-things-gin -v .
- create Procfile to deploy to Heroku
- run
heroku local
to test endpoints locally - in Heroku, set
MONGOURI
andAPP_ENV=production
in config vars