Made with node + Express companion frontend app: https://github.com/marciofao/react-book-manager
- http routes (express router)
- File manipulation (fs) json as db
- Data validation
- Error handling
- Error status codes in api responses
- GET /books
- GET /books/:id
- POST /books (body:
{id, name}
) - PATCH /books/:id
- DEL /books/:id
Run npm install
to install all dependencies
Run node app.js
to start the server
It uses nodemom for hot reloading.
run nodemon app.js
to start the server.