- Create a .env file and add Environment Variable in
api
folder
PORT=YOUR_PORT (Default port is 8000)
DATABASE=YOUR_DB_URL (you can use this if you want to run it in locally: mongodb://localhost/twitter_clone)
SALT=10
JWT_SECRET=RANDOM_STRING
- Create a .env file and add Environment Variable in
ui
folder
REACT_APP_API_URL=http://localhost:8000/api
- Open both folder and run:
npm install
- After installation, run booth application at the same time with:
npm start
- Then: http://localhost:3000/