A full-stack social media application built using the MERN stack (MongoDB, Express.js, React, Node.js) for users to create accounts, post updates, and connect with others.
Check out the live demo: social media Live Demo
- Clone the repository:
git clone https://github.com/ramezgabra/Mern-Social-Media.git
- Navigate to the project directory:
cd Mern-Social-Media
- Navigate to the server directory:
cd server
- Install server dependencies:
npm install
- Navigate to the client directory:
cd ../client
- Install client dependencies:
npm install
- Create a
.env
file in the root directory with the following environment variables:
MONGO_URL=your_mongodb_connection_uri
JWT_SECRET=your_jwt_secret
PORT=3001
To run the server, navigate to the server directory:
cd server
npm run start
To run the client, navigate to the client directory:
cd client
nodemon index.js
Make sure to follow these steps to start the server and client.
Access the application in your web browser at http://localhost:3000
.