A Fairly simple Twitter Backend server built using Node.js, Express, Prisma, JWT Authentication, AWS SES, passwordless authentication, and Docker containerization.
POST /auth/login
: User login endpointPOST /auth/authenticate
: User authentication with email OTP
POST /user/
: creates new user in databaseGET /user/id
: Finds user with same IDPUT /user/id
: Updates profile data like name, bio and images with given IDDELETE /user/id
: Deletes a user from the database with passed ID
POST /tweet/
:req{userId}
creates new tweetGET /tweet/:id
:req{id}
Fetches tweet with corresponding idPUT /tweet/:id
:req{id}
Updates tweet with the corresponding idDELETE /tweet/:id
:req{id}
Deletes the tweet with the corresponding id from the database