run `git init` in your project directory
run `git clone Your_Repository_Link` ex.=> `git clone https://github.com/YOUR_GITHUB_USERNAME/Dev_Notes.git`
npm run init
cpmmand in the root directory of the project (To install all the dependencies).JWT_SIGNATURE = YOUR_JWT_SECRET
MONGO_URI = YOUR_MONGO_DB_URL
FRONTEND_DEV = VITE_APP_URL ` http://localhost/3000 `
FRONTEND = YOUR_FRONTEND_WEBSITE_LINK (after deploying your frontend)
VITE_HOST = ` http://localhost:BACKEND_PORT `
In Development => ` http://localhost:5000 ` (default:5000)
In Production => YOUR_BACKEND_WEBSITE_LINK (afer deploying your backend)
npm run dev
Your App is live on YOUR_FRONTEND_PORT(3000) and server is running on YOUR_BACKEND_PORT(5000)
git branch -M main
git remote add origin main
git checkout -m [new_update_branch_name]
git add .
git commit -m "YOUR_COMMIT_MESSAGE"
git push -u origin [new_update_branch_name]
You have Updated you Github Repository with these changes
Name : YOUR_APP_NAME
Branch : main
Root Directory : Frontend
publish directory : build
Add details:
Name : YOUR_APP_NAME
Branch : main
Root Directory : BACKEND
**** Under Environment **** => create a environment variable
key : FRONTEND, value : YOUR_FRONTEND_WEBSITE_URL (PASTE YOUR FRONTEND URL HERE),
key : JWT_SIGNATURE, value : YOUR_JWT_SECRET,
key : MONGO_URI, value : YOUR_MONGO_DB_URL,
key : FRONTEND_DEV, value : ` http://localhost:3000 `
key: VITE_HOST;
value: YOUR_BACKEND_WEBSITE_URL;