Single-page fortune wheel built with Vue 3 and Vite.
- Node.js 18+ (LTS recommended)
- npm 9+
npm installStart the app with hot reload:
npm run devThen open the URL shown in the terminal (default: http://localhost:5173).
Create the optimized production bundle:
npm run buildThe build output is written to the dist/ folder.
You can quickly preview the production build locally:
npm run previewOpen the preview URL printed in the terminal (default: http://localhost:4173).
The app is a static site and can be deployed by serving the dist/ folder with any static web server.
- Build the app:
npm run build
- Upload the content of
dist/to your web root (for example/var/www/fortunewheel). - Configure your web server to serve
index.htmlfor all routes.
Nginx example:
server {
listen 80;
server_name your-domain.com;
root /var/www/fortunewheel;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}Most hosts support Vue/Vite apps by uploading dist/ (or connecting your Git repo):
- Netlify
- Vercel
- GitHub Pages
- Cloudflare Pages
- Any static CDN bucket (S3 + CloudFront, etc.)
npm run dev # local development
npm run build # production build
npm run preview # local preview of production build