- 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
Frontend build (Vite)
- Development: run
npm run frontend:devin the project root, which starts Vite. Open the dev server URL printed by Vite (usually http://localhost:5173) and the backend athttp://localhost:8282. - Build: run
npm run frontend:buildwhich outputs files todist/. The Express server will servedist/index.htmlat/adminoncedist/exists.
Notes:
- Install dev dependencies with
npm installbefore running the scripts. - The Vite build includes
@vitejs/plugin-legacyfor broader browser support.
Description
Languages
JavaScript
100%