This repository contains:
- React + Vite frontend at repo root
- Node.js + Express backend in
backend/
npm install
npm run devcd backend
npm install
npm run devBackend env file (backend/.env):
PORT=3001
MONGODB_URI=your_mongodb_connection_string
FRONTEND_URL=http://localhost:5173Frontend env file (.env):
VITE_API_BASE_URL=http://localhost:3001
VITE_ADMIN_PASSCODE=your_admin_passcoderender.yaml creates:
portfolio-frontend(Static Site)portfolio-backend(Web Service)
Set these env vars in Render:
- Frontend:
VITE_API_BASE_URL= backend service URL - Backend:
MONGODB_URI,FRONTEND_URL= frontend service URL
Some auth files under backend/routes/ still contain broken imports/logic from older code and are not mounted in backend/server.js yet. The docs API routes are wired and deploy-ready.
git add something here and then push so 6 tarikh ko main IILM me tha udha ek ladki milli joo bahut sundar thi this is a new git push