This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.
A simple Express backend has been added in server/index.js with demo endpoints for analytics, foods, orders, and customers.
To run the backend server:
npm run start:serverThen start the frontend:
npm run devThe dashboard frontend now fetches data from http://localhost:4000/api/analytics and http://localhost:4000/api/foods.