Welcome to the MERN Social Media Application! This README provides an overview of the project, including setup instructions, features, and technologies used. This application is built using the MERN stack (MongoDB, Express.js, React, and Node.js) and provides a fully functional social media platform.
- User authentication and authorization
- Create, read, update, and delete posts
- Follow and unfollow users
- Like and comment on posts
- User profiles with bio and profile picture
-
Frontend:
- React
- Redux (for state management)
- Axios (for API requests)
-
Backend:
- Node.js
- Express.js
- MongoDB (with Mongoose for object modeling)
- JWT (for authentication)
- Bcrypt.js (for password hashing)
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed
- MongoDB installed and running
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/himanshuarya3110/DevConnect.git cd DevConnect
-
Install dependencies:
For the backend:
cd server npm install
For the frontend:
cd ../client npm install
-
Set up environment variables:
Create a
.env
file in thebackend
directory and add the following variables:PORT=your_port MONGODB_CONNECTION=your_mongodb_connection_string JWTKEY=your_jwt_secret
-
Run the application:
In the
backend
directory, start the backend server:npm run dev
In the
frontend
directory, start the React development server:npm start
The application should now be running on
http://localhost:3000
(frontend) andhttp://localhost:5000
(backend).