React 19 and Vite frontend for the CeduGames learning experience.
- Node.js 20.19 or newer
- npm 10 or newer
npm ci
npm run devnpm run check
npm run previewnpm run check runs linting and creates the optimized dist build. The production server must serve index.html for unknown routes because the application uses browser-based routing.
Build and run the included production container:
docker build -t cedugames .
docker run --rm -p 8080:80 cedugamesThen open http://localhost:8080. The Nginx configuration includes SPA routing, asset caching, compression, and baseline security headers.
For a static hosting provider, publish dist after npm run build and configure a rewrite from all unmatched paths to /index.html.