The goal here is to create a list of gifts for Christmas.
For that we'll need some API endpoints:
GET /
: List of giftsGET /:id
: Display a specific giftPOST /
: Gift creationDELETE /:id
: Deleting the gift
To store data, several solutions are available:
- A MongoDB database with
Mongoose
- a SQLite database with
Sequelize
- A MySQL database with the
MySQL
module - A JSON file that you will edit with the
fs
module
All the endpoints must return a JSON and the correct HTTP code.
Fork this repository, add a new branch with [FIRSTNAME]_[LASTNAME] and do a pull request when it's done.
Your code must be clean, go along with JS standards (e.g AirBnB style guide), have clear variable names and comments.