This is my project which describes endpoints for user interaction with a social network
Express-validator – to validate input data received from frontend, Nodemailer – to sending email confirmation message and recovery password code, Jsonwebtoken – to create acceess and refresh tokens with payload, mongodb, mongoose, jest supertest, cookie-parser, bcrypt,
- login
- password recovery by email
- set new password
- create new pair of access & refresh token
- confirm registration by received confirmation code
- registration in the system (confirmation code sent to the email)
- resend confirmation registration email if user exist
- logout
- get information about current user
- get blogs with paging
- create new blog
- get all posts for specified blog
- create new post for specified blog
- get blog by id
- update existing blog by id with input model
- delete blog specified by id
- update existing comment gy id with input model
- delete comment specified by id
- ger comment by id
- get comments for speciied post by postId
- create new comment for speciied post by postId
- get all posts
- create new post
- get post by id
- update existing post by id with input model
- delete post specified by id
- get all devices with active sessions for current user
- terminate all other (exclude current) device's sessions
- terminate specified device session
- get all users
- add new user to the system by admin
- delete user specified by id
Clean the datebase