786 B
786 B
Mengya Drift Bottle – Frontend
React + Vite single-page application that consumes the Flask API exposed under /api.
Available Scripts
# start dev server with API proxy to http://localhost:5002
npm run dev
# lint with ESLint
npm run lint
# production build
npm run build
The dev server proxies every /api/* request to the backend, so start the Flask app before opening the React UI.
Configuration
Set the following environment variables in a .env file if you need to override defaults:
VITE_API_BASE_URL=http://localhost:5002/api
VITE_ADMIN_URL=http://localhost:5002/admin/login
In production you typically serve the static build (dist/) behind the same origin as the backend, allowing the default relative /api base to keep working.