UK Contact Improvisation Calendar
We use VSCode and have relevant settings checked into the repo under .vscode/
.
- Install VSCode extensions from
.vscode/extensions.json
using theExtensions: Show Recommended Extensions
command - Add environment variables as
KEY=value
pairs in.dev.vars
(not.env.local
, since we are running on Cloudflare) - Install nvm
- Run
nvm install
to install the node version specified in.nvmrc
- Run
npm install
to install dependencies - Run
npm run dev
to start the local development server - Open
http://localhost:3000
with 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-pages
to 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.