- Express
- MongoDB
- Mongoose
- Celebrate/Joi
- Winston
for development
- ESLint
- Nodemon
/routes
/controllers
/models
/middlewares
/errors
API request | Router | Aim |
---|---|---|
POST | /signin |
authorization |
POST | /signup |
registration |
GET | /users/me |
get information about the user |
GET | /cards |
get all cards |
POST | /cards |
add a card |
PUT | /cards/:cardId/likes |
put 'like' |
DELETE | /cards/:cardId/likes |
remove 'like' |
DELETE | /cards/:cardId |
delete the card |
PATCH | /users/me |
update the user`s profile |
PATCH | /users/me/avatar |
update the user`s avatar |
npm run start
— start the server
npm run dev
— start the server with hot-reload