This is a Twitter clone application built using Node.js, Express.js, and MongoDB for the backend, and React.js for the frontend. The application allows users to register, login, post tweets, and view tweets from other users. X-Clone
- User authentication (register, login, logout)
- JWT-based authentication
- Secure cookie handling
- Create, read, update, and delete (CRUD) tweets
- Follow and unfollow users
- Real-time notifications
- Like and bookmark tweets
- Display tweets from followed users
- Backend: Node.js, Express.js, MongoDB
- Frontend: React.js, Axios
- Middleware: JWT, bcrypt, cookie-parser, cors, morgan
- Deployment: Netlify (Frontend), onrender (Backend) hosting service
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed
- MongoDB installed and running
-
Clone the repository
git clone https://github.com/your-username/Mern-Twitter-Clone.git cd Mern-Twitter-Clone
-
Navigate to the server directory
cd server
-
Install backend dependencies
npm install
-
Create a .env file in the server directory and add the following environment variables
PORT=8080 MONGO_URL=your_mongodb_connection_string JWT_SECRET=your_jwt_secret NODE_ENV=development DEV_MODE=development FRONTEND_URL=http://localhost:3000
-
Start the backend server
nodemon || node app.js
-
Navigate to the client directory
cd ../client
-
Install frontend dependencies
npm install
-
Create a .env file in the client directory and add the following
REACT_APP_BASE_URL=http://localhost:8080/api/v1
-
Start the frontend development server
npm start
Contributions are welcome! If you'd like to contribute to ApexBooking Health, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or support, please contact me at harismohanty8658gmail.com.
Thank you for using X Clone!