A sandbox on how to get Vite+React app to be served from a Node backend.
Development mode let's you run the Vite+React app and the Node backend separately.
cd frontend
npm install
npm run devUI will be served at http://localhost:5173/ by default.
cd backend
npm install
npm run devServer will be served at http://localhost:3000 by default.
Production mode let's you run the Vite+React app and the Node backend together.
cd frontend
npm installcd backend
npm installcd ..
npm installnpm run build
npm run devUI should be served from the backend at http://localhost:3000 by default.