Built using modern tehnologies: node.js, express.js, mongoDB(mongoose), react and socket.io
- React
- Express.js
- MongoDB(mongoose)
- Socket.io
- 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