This is a Twitter clone project built using Node.js, Express, and MongoDB. It allows users to create an account, follow and unfollow other users, and create and view tweets.
Test This Project With Check Deployments https://twitter-backend-git-master-prince9871.vercel.app/
Clone the repository https://github.com/prince9871/twitter-backend.git
Install dependencies using
- npm install Start the server using
- npm start To start the server in development mode using nodemon
The following endpoints are available:
The User model has the following properties:
- username (string, required)
- email (string, required, unique)
- favorite_food (string, required)
- password (string, required)
- following (array of user IDs)
- followers (array of user IDs)
The Tweet model has the following properties:
- content (string, required)
- userId (user ID of the user who created the tweet)
- hashtags (array of strings)
- bcrypt: ^5.1.0
- express: ^4.18.2
- joi: ^17.9.1
- jsonwebtoken: ^9.0.0
- mongoose: ^7.0.3
- nodemon: ^2.0.22
- Endpoints
- The following endpoints are available: