High-speed fiber broadband service website powered by RailWire, serving Agra and surrounding areas.
- Vite (build tool)
- Vanilla JavaScript
- Supabase (database)
- Google Apps Script (email notifications)
- A Vercel account (sign up at vercel.com)
- Supabase project set up
- Google Apps Script deployed for email notifications
-
Install Vercel CLI (optional)
npm i -g vercel
-
Push your code to GitHub/GitLab/Bitbucket
-
Import to Vercel
- Go to vercel.com/new
- Import your repository
- Vercel will auto-detect Vite configuration
-
Configure Environment Variables
In Vercel dashboard, add these environment variables:
VITE_SUPABASE_URL- Your Supabase project URLVITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY- Your Supabase anon/public keyVITE_GAS_EMAIL_URL- Your Google Apps Script web app URL
-
Deploy
- Click "Deploy"
- Vercel will build and deploy automatically
# Install dependencies
npm install
# Start dev server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview- Copy
.env.exampleto.env - Fill in your actual credentials
- Never commit
.envto version control
Run the SQL script in your Supabase project:
# Execute supabase_setup.sql in your Supabase SQL editorOnce connected to Vercel:
- Every push to
mainbranch triggers automatic deployment - Pull requests get preview deployments
- Environment variables are inherited from project settings
├── index.html # Main HTML file
├── src/
│ ├── main.js # JavaScript entry point
│ ├── style.css # Styles
│ └── supabase.js # Supabase client
├── public/ # Static assets
├── vercel.json # Vercel configuration
└── package.json # Dependencies
For issues or questions, contact support through the website contact form.