This project is a social media app built with Node.js, Express, MongoDB, React, and Firebase. The app allows users to connect with each other through posts, likes, comments, and profiles.
- User authentication via login and signup
- Create and delete posts
- Add and remove likes
- Add and remove comments
- View and update user profiles
- Receive notifications for account-related activities
- Upload photos
- Node.js
- Express
- MongoDB
- React
- Firebase
- Node.js
- MongoDB
- Firebase Account
- Clone the repository:
git clone https://github.com/username/social-media-app.git
- Install dependencies:
cd social-media-app
npm install
-
Set up Firebase:
- Create a Firebase account and project
- Generate Firebase API keys for the project
- Add the API keys to a .env file in the root directory in backend
FIREBASE_API_KEY
FIREBASE_APP_ID
FIREBASE_AUTH_DOMAIN
FIREBASE_MEASUREMENT_ID
FIREBASE_MESSAGING_SENDER_ID
FIREBASE_PROJECT_ID
FIREBASE_STORAGE_BUCKET
JWT_SECRET
SALT_ROUNDS
MONGO_URL
PORT
- Add the API keys to a .env file in the root directory in frontend
REACT_APP_API_BASE_URL
- Start the server:
npm start
- Open the app in your browser at http://localhost:8000 or on the specified PORT in the .env file
Saurav Shekhar Singh | @sauravshekharsingh