Skip to content

Social media app built in MERN stack and Socket.io

Notifications You must be signed in to change notification settings

Feruz00/socialMedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Social Media application

Built using modern tehnologies: node.js, express.js, mongoDB(mongoose), react and socket.io

Features

  • React
  • Express.js
  • MongoDB(mongoose)
  • Socket.io

Getting started

  • Clone the repository
https://github.com/Feruz00/socialMedia.git <project_name>
  • Install dependencies
cd <project_name>
cd client/
yarn # or npm i
cd ..
cd server/
yarn # or npm i
  • Setup environment variables
cd server/
touch .env 

Following are the environment variables:
FRONTEND_URL - Frontend url
SESSION_SECRET - Secret for express-session
MONGO_URL - is the MongoDB connection string, for e.g. MONGO_URL=mongodb://localhost:27017/socialMedia
GOOGLE_CLIENT_ID , GOOGLE_CLIENT_SECRET - fill up Cloud Google
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET - fill up Github
USER_ADDRESS, USER_PASSWORD - for gmail account send tokens when user registered or reset password to confirm email
my_secret - it is simple your secret

  • Run the project locally for development Open two terminal
cd client/
npm start
cd server/
nodemon app.js