Frontend is React + Vite.
Backend is AWS Lambda (lambda/waitlist.mjs) + DynamoDB via SAM (template.yaml).
Copy env file and run:
cp .env.example .env
npm install
npm run devFrontend runs on http://localhost:5173.
npm run buildVITE_WAITLIST_API_URL is read from .env.production during build.
VITE_BASE_PATH controls GitHub Pages subpath base (for this repo: /es-waitlist/).
Build and deploy the backend:
npm run sam:build
npm run sam:deployOr first-time guided deploy:
sam deploy --guided.env: local dev only. Never commit secrets..env.production: build-time frontend config for production (safe if it only contains public API URLs).samconfig.toml: SAM deploy defaults (stack name/region/options), not credentials.
This repo includes a workflow at .github/workflows/deploy-pages.yml that deploys on push to main.
- Push your changes to
main. - In GitHub repo settings, go to
Settings -> Pages. - Set
Build and deploymentsource toGitHub Actions. - Wait for the
Deploy To GitHub Pagesworkflow to complete.
Your site URL will be:
https://Acs176.github.io/es-waitlist/