Skip to content

anishVermaIsHere/social-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Social Media App with using MUI

To start application: You have to install first NodeJS from here NodeJS download in your system and after installation follow these steps as below

  1. Clone this repo by the command
git clone -b dev https://github.com/anishVermaIsHere/social-media.git
  1. Create .env file in client folder.
VITE_BASE_URL='http://localhost:5000'
  1. And also create another .env file into api folder.
SERVER_PORT=5000
CORS_ORIGIN='http://localhost:5173' or <YOUR_DOMAIN>
DB_URI=<YOUR_DATABASE_URI>

SALT=10
ACCESS_TOKEN_SEC_KEY=<YOUR_KEY>
REFRESH_TOKEN_SEC_KEY=<YOUR_KEY>
ACCESS_TOKEN_EXPIRY='1h'
REFRESH_TOKEN_EXPIRY='7d'


CLOUDINARY_API_KEY=<YOUR_API_KEY>
CLOUDINARY_API_SEC_KEY=<YOUR_API_SEC_KEY>
CLOUDINARY_CLOUD_NAME=<YOUR_CLOUD_NAME>
  1. Then start client app with command
npm run dev
  1. And start api server app with command
npm start
  1. Your app will run successfully.

 ScreenShot

 Social Media App

 Social Media App