Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
Manikandan edited this page Jan 15, 2021 · 1 revision

Backend setup

  1. Clone the backend repo
git clone https://github.com/manikandanraji/youtubeclone-backend

# navigate to the root directory
cd youtubeclone-backend
  1. Database connection using ElephantSQL
  1. Create a .env file at the root directory with the following contents
JWT_SECRET=pewdiepie # opt for more secure secret
JWT_EXPIRE=30d
DATABASE_URL=[YOUR_DB_CONNECTION_URL]
  1. Installing the dependencies
npm i
  1. Running the server locally
npm run dev # server started running at http://localhost:5000

Frontend setup

  1. Clone the frontend repo
git clone https://github.com/manikandanraji/youtubeclone-frontend

# navigate to the root directory
cd youtubeclone-frontend
  1. Cloudinary setup and adding upload preset
  1. Create a .env file at the root directory with the following contents
REACT_APP_BACKEND_URL=http://localhost:5000/api/v1/ # make sure you're running the backend locally
REACT_APP_CLOUDINARY_ENDPOINT=https://api.cloudinary.com/v1_1/<YOUR_CLOUD_NAME>
  1. Installing the dependencies
npm i
  1. Start the frontend
npm start # http://localhost:3000
Clone this wiki locally