nifty_fifty_bank_nifty_ReactJS/.env
Required at runtime
These are embedded in the client bundle at build time.
Build / asset paths
Development only
Remove or empty these in production builds.
Local development setup
1
Copy env template
Start from the project
.env and set URLs to your running backend port.2
Start backend
Backend on port
3005 (or update both URL vars to match).3
Start frontend
npm run dev — Vite dev server proxies or calls API directly per config.4
Verify
Login works and browser Network tab shows WebSocket to
VITE_APP_SOCKET_URL.Production checklist
-
VITE_APP_BASEURLpoints to production API with HTTPS -
VITE_APP_SOCKET_URLmatches API host (wss/https) - Dev credential vars removed
-
PUBLIC_URLmatches deployed frontend URL