The site is ready to deploy to Netlify with automatic lead submission.
Visit Netlify and click Add new site → Import an existing project.
- Select GitHub as your Git provider
- Authorize and select the
bei22002-cpu/businessrepository - Netlify should auto-detect the
netlify.tomlconfiguration
In Netlify's site settings, go to Build & deploy → Environment and add:
EMAIL_USER=your-email@gmail.com
EMAIL_PASS=your-gmail-app-password
EMAIL_RECIPIENT=northstarconsulting@gmail.com
How to get a Gmail app password:
- Enable 2-Step Verification on your Google Account
- Go to myaccount.google.com/apppasswords
- Select Mail and Windows Computer to generate a 16-character password
- Paste that password as
EMAIL_PASS
Push your changes to GitHub and Netlify will automatically build and deploy:
git add .
git commit -m "Setup live deployment for NorthStar site"
git push origin mainYour site will be live within seconds at your-site.netlify.app.
docs/- Static HTML, CSS, JS, and favicon (served by GitHub Pages as fallback)netlify/functions/submit-lead.js- Serverless endpoint for consultation requestssite-config.js- Runtime configuration for the lead endpointnetlify.toml- Netlify build and function configuration
- Chatbot intake - Visitor answers questions in chat, form is prefilled
- Consultation form - Visitor reviews and submits the form
- Serverless function -
submit-lead.jsvalidates and emails the lead - Email notification - NorthStar receives the consultation request
If you don't want email submission, GitHub Pages can host the static site:
- Settings → Pages → Source:
main/docs/ - Site will be live at
https://bei22002-cpu.github.io/business/
Vercel also supports serverless functions. Update verify.json if switching platforms.
If you prefer not to handle email credentials:
- Deploy to Netlify without the serverless function
- Update
site-config.jsto setfallbackToEmail: true - The form will fall back to email client when submitted