This repository contains the code for a Twitter clone application's backend built using Node.js, a popular JavaScript runtime environment. The backend utilizes various packages such as Express, Mongoose, Express-Validator, and JSON Web Token (JWT) for managing routes, database interactions, input validation, and authentication, respectively.
- REST API endpoints for user authentication and CRUD operations.
- User authentication using JWT.
- Database operations using Mongoose.
- Input validation using Express-Validator.
- Hot reload using Nodemon.
To run the application, you will need to have Node.js and npm installed on your machine. Follow these steps:
- Clone the repository:
git clone https://github.com/abdimussa87/twitter-mern-backend
- Install dependencies:
npm install
- Start the development
server: npm start
- Once the development server is running, you can access the backend API at http://localhost:8080.
- src/: Contains the source code for the application, including models, controllers, and routes.
- package.json: Lists the project's dependencies and scripts.
- README.md: Provides instructions and information about the project.
This project is licensed under the MIT License.
Feel free to contribute and improve the project by forking this repository and submitting pull requests.