Welcome to the Social Networking Site built using the MERN Stack (MongoDB, Express, React, Node.js). This project offers users the ability to connect with each other, share posts, like content, and more, similar to popular social networking platforms.
Check out the live demo of the application here.
This social networking site allows users to:
- Create an account and log in.
- Post updates, photos, and share content with their connections.
- Like and comment on posts.
- Edit their profiles and update personal information.
- View and manage friend requests.
- See real-time updates from other users on their feed.
- Frontend: React.js with modern hooks and context for state management.
- Backend: Node.js and Express.js.
- Database: MongoDB for storing user data, posts, and comments.
- Authentication: JWT (JSON Web Token) for secure user authentication.
- Hosting: Vercel for deployment of the frontend and backend.
- User authentication (login, registration, password hashing).
- Post creation, editing, and deletion.
- Like and comment functionality.
- Real-time feed updates.
- Friend request system.
- Profile management (edit user information, update profile picture).
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-repo-link
-
Install dependencies:
- Navigate to both the frontend and backend directories and run:
npm install
-
Set up environment variables:
- Create a
.env
file in the root directory of the backend and add the following:
MONGO_URI = PORT = CORS_ORIGIN= JWT_SECRET=
- Create a
-
Start the development server:
- Run the backend server:
npm run dev
- Run the frontend React application:
npm run dev
-
Access the app:
- Open your browser and go to
http://localhost:3000
for the frontend andhttp://localhost:<Backend Port>
for the backend.
- Open your browser and go to
Rehman
LinkedIn
Feel free to check out the live demo and connect with me on LinkedIn!