UK Contact Improvisation Calendar
We use VSCode and have relevant settings checked into the repo under .vscode/.
- Install VSCode extensions from
.vscode/extensions.jsonusing theExtensions: Show Recommended Extensionscommand - Add environment variables as
KEY=valuepairs in.dev.vars(not.env.local, since we are running on Cloudflare) - Install nvm
- Run
nvm installto install the node version specified in.nvmrc - Run
npm installto install dependencies - Run
npm run devto start the local development server - Open
http://localhost:3000with your browser.
Pages live in src/app/ (NextJS app router). The development server auto-reloads as you edit.
The app is deployed on Cloudflare Pages. To build and test locally against the Cloudflare Worker runtime:
- Run
npx @cloudflare/next-on-pagesto build - Preview using
npx wrangler pages dev .vercel/output/static
If environment variables change, update them in Cloudflare dashboard > Workers & Pages > cicalendaruk > Settings > Environment variables.