- created with Node.js + Express.js + MongoDB
- used libraries like: bcrypt, jsonwebtoken, express-validator, mongoose
- to use
npm i
node index.js
- email: peter@abv.bg, password: 123
- GET
- POST
- PUT
- DELETE
POST /users/register
- registerPOST /users/login
- loginGET /users/logout
- logout
-
GET /data/catalog
- get all items -
POST /data/catalog
- create item -
GET /data/catalog/:id
- get item -
PUT /data/catalog/:id
- edit item -
DELETE /data/catalog/:id
- delete item