npm run dev- Start Vite dev server (port 5173)npm run build- Build for productionnpm run preview- Preview production build locallynpm run lint- Run ESLint
python main.py- Start FastAPI server (port 8000)
- Frontend: Vite + React 19 + React Router 7
- Backend: FastAPI (Python)
- Database: Firebase
- Deployment: GitHub Codespaces
The Vite dev server on GitHub Codespaces requires special configuration for:
- Manifest file serving (configured via codespaceDevPlugin)
- CORS headers for cross-origin requests
- Relative path references in index.html
The manifest.webmanifest file must be in the frontend root directory for both dev and production builds.
- Frontend source:
/workspaces/agri/frontend/ - Public assets:
/workspaces/agri/frontend/public/and/workspaces/agri/frontend/Public/ - Python source:
/workspaces/agri/ - Build output:
/workspaces/agri/frontend/build/
Run npm run lint in the frontend directory to check code quality.