REACT_APP_API_URL=http://localhost:8080
REACT_APP_GOOGLE_CLIENT_ID=xxxxxx.apps.googleusercontent.com
create another .env file in Social Network Backend Folder with the following code (update credentials).
MONGO_URI=mongodb://localhost:27017/socialNetworkDB
JWT_SECRET=xxxxxx
CLIENT_URL=http://localhost:3000
REACT_APP_GOOGLE_CLIENT_ID=xxxxxx.apps.googleusercontent.com
EMAIL=xxxxx (smtp email)
PASSWORD=xxx (smtp password)
cd Social-Network-Backend/
npm i
node app.js
Simultaneously run the following commands in another tab. Make sure you have create-react-app installed.
cd React-Frontend/
npm i
npm start