- Added Vite scripts for development, build, and preview in package.json - Created README.md with instructions for frontend setup - Added client/index.html as the main entry point for the frontend - Implemented client/src/main.js for handling file uploads and UI interactions - Added client/src/styles.css for styling the frontend components - Configured Vite in vite.config.js for building the frontend assets
9 lines
533 B
Markdown
9 lines
533 B
Markdown
Frontend build (Vite)
|
|
|
|
- Development: run `npm run frontend:dev` in the project root, which starts Vite. Open the dev server URL printed by Vite (usually http://localhost:5173) and the backend at `http://localhost:8282`.
|
|
- Build: run `npm run frontend:build` which outputs files to `dist/`. The Express server will serve `dist/index.html` at `/admin` once `dist/` exists.
|
|
|
|
Notes:
|
|
- Install dev dependencies with `npm install` before running the scripts.
|
|
- The Vite build includes `@vitejs/plugin-legacy` for broader browser support.
|