This project is a Twitter API clone that includes authentication, post upload CRUD operations, and comments and likes functionality.
- Authentication: Secure user login and registration
- Post Upload: Create, read, update, and delete posts
- Comments and Likes: Add comments and likes to posts
- Node.js
- Express.js
- MongoDB
- JWT (JSON Web Tokens)
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Node.js installed on your machine
- MongoDB set up and running
- Express.js
- JWT
-
Clone the repository:
git clone https://github.com/Aasuyadav1/Twitter-API.git cd twitter-api-project
-
Install dependencies:
npm install
-
Set up your environment variables. Create a
.env
file in the root directory and add the following:MONGODB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret
-
Start the server:
npm start
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.