A Simplified full stack social media MERN app
- 🤖 Introduction
- ⚙️ Tech Stack
- 🔋 Features
- 🤸 Quick Start
- 🕸️ Assets & Code
- 🚀 More
Built with the React and Nodejs, this project replicates a social media App. It enables users to securely log in, create posts with images, search for friends and add friends.
- React
- JavaScript
- Mui
- ReactRedux
- Mongodb
- Jwt
Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Cloning the Repository
git clone https://github.com/subho30666/snap.git
cd snap
Installation
Install the project dependencies using npm:
cd server
npm install
cd client
npm install
Set Up Environment Variables
Create a new file named .env
in the server folder and add the following content:
# MongoDB connection string
MONGO_URL=your_mongo_url
# The port your server will listen on
PORT=3001
# Secret key for JWT signing and verification
JWT_SECRET=your_jwt_secret_key
Replace the placeholder values with your actual mongodb URl and jwt secret key of your choice.
Running the Project
cd server
npm start
cd client
npm run dev
Open http://localhost:5173 in your browser to view the project .