A Next.js (App Router) implementation of techtankto.com, Toronto's volunteer-run tech community website. The redesign moves away from a flat "link-tree" layout toward a conversion-oriented onboarding hub that funnels visitors into specific roles β attendee, speaker, host, sponsor, or organizer.
Specs live in docs/prd/; application code lives in app/.
The initial UI scaffold was generated from the PRD via v0 β
original prompt and generation.
House standards (process, writing, nextjs, components, data, testing, performance,
accessibility, seo, git) are supplied by the harness-skills
library, vendored at .agents/skills/ (.claude/skills/ symlinks to
it) and loaded automatically by any skill-aware coding agent.
- Next.js 16 (App Router, Turbopack)
- React 19 + TypeScript
- Tailwind CSS 4
- shadcn/ui component pattern (
components.jsonconfig) - class-variance-authority (CVA) for type-safe component variants
- Radix UI primitives (via
@radix-ui/react-slot) - lucide-react for icons
- Inter + Space Grotesk via
next/font - pnpm 10 for package management
Requirements: Node.js 20+ and pnpm 10.
pnpm install
pnpm devThen open http://localhost:3000.
Some features require environment variables to function correctly. Copy .env.example to .env.local and populate the values:
| Variable | What it is |
|---|---|
LUMA_CALENDAR_ID |
The Luma calendar ID (e.g. cal-...) used to fetch upcoming and past events on the /events page. |
See scripts/instagram/README.md for Instagram-specific environment variables.
| Command | What it does |
|---|---|
pnpm dev |
Start the dev server with Turbopack |
pnpm build |
Production build |
pnpm start |
Serve the production build |
pnpm lint |
Lint with oxlint |
pnpm type:check |
Type-check with tsc (no emit) |
pnpm format |
Format the repo with oxfmt |
pnpm format:check |
Check formatting without writing |
pnpm db:start |
Start the local Supabase stack |
pnpm db:stop |
Stop the local Supabase stack |
pnpm db:reset |
Reapply migrations + seed |
The app's dynamic features β a task board (/tasks) and its organizer
back office (/admin/tasks) β are backed by Supabase Postgres under
db/; Slack notifications run in the app's server actions. The
rest of the app runs without it.
Requires Docker. The Supabase CLI is pinned
as a devDependency, so use the pnpm db:* scripts rather than a global
install (an older global CLI will silently ignore parts of
config.toml).
pnpm db:start # boots Postgres, Studio, etc.
cp .env.example .env.local # then paste the anon key from db:start output
cp db/.env.example db/.env # Slack OIDC credentials
pnpm devThe local stack runs on its own port block (5452x, project_id = "techtank") so it never collides with any other local Supabase stack.
Studio is at http://localhost:54523.
Everything is browsable without signing in. Applying for a task and the admin back office need an account. Locally that is an email and a password, with no Slack app to register; see below. In production it is always Slack.
pnpm db:start seeds an organizer, so the whole task board works on a
fresh clone:
organizer@localhost / localdev
Sign in at http://localhost:3000/admin for the back office, or from the
apply panel on any task. The seeded account is in the admins allowlist,
so it reaches /admin/tasks; a second account you sign up yourself will
not, which is the same rule production follows.
Two things make this local-only:
- The email provider is enabled in
db/supabase/config.toml, which configures the CLI's Docker stack and never the hosted project. The hosted project is configured in the Supabase dashboard. - The form only renders when
NODE_ENVisdevelopmentandNEXT_PUBLIC_SLACK_TEAM_IDis unset.next buildalways setsNODE_ENV=production, so every Vercel deployment, preview included, shows Slack.
Set NEXT_PUBLIC_SLACK_TEAM_ID and the sign-in goes back to Slack, which
is how to exercise the real flow locally.
Editing db/supabase/config.toml needs pnpm db:stop && pnpm db:start.
pnpm db:reset reapplies migrations and the seed but does not re-read
that file.
Set this up when you need to exercise the real sign-in, the apply receipt, or the organizer alert. Local development does not require it.
Slack is the only identity in production β it's how applicants prove
they're in the community and how organizers sign in. One Slack
app (api.slack.com/apps β Create New App)
carries all of it; note its Client ID / Secret (Basic Information)
and your workspace / team ID (Tβ¦, from About this workspace). Then:
-
Sign in with Slack β enable it on the Slack app (scopes
openid,profile,email). In Supabase (Authentication β Providers β Slack (OIDC)) enable it and paste the Client ID / Secret; locally put them indb/.env. Add your app callback (β¦/auth/callback) to Authentication β URL Configuration. -
OAuth redirect URL β the Slack app and Supabase must agree on it exactly. Locally that needs HTTPS (Slack rejects
http://localhost): runngrok http 54521and set both the Slack app's Redirect URLs andSLACK_OIDC_REDIRECT_URIindb/.envtohttps://<tunnel>/auth/v1/callback(a free ngrok URL changes on every restart). In production it's the hosted project's ownhttps://<ref>.supabase.co/auth/v1/callbackβ no tunnel, no override. -
Bot (OAuth & Permissions β Bot Token Scopes):
chat:write,im:write,mpim:writeβ the 1:1 and group DMs open a channel before posting. Name it Tanky, install it, and copy thexoxb-β¦Bot User OAuth Token. Add an Incoming Webhook on the organizers' channel for the alert. -
Secrets β
db/.env:SLACK_OIDC_CLIENT_ID/SECRET..env.local:NEXT_PUBLIC_SUPABASE_URL/ANON_KEY,NEXT_PUBLIC_SLACK_TEAM_ID,SLACK_WEBHOOK_URL,SLACK_BOT_TOKEN,PUBLIC_SITE_URL. Hosted: OIDC creds in the Supabase dashboard, everything else in Vercel. -
Lock the workspace β
NEXT_PUBLIC_SLACK_TEAM_IDonly pre-selects the workspace on the consent screen; the database is the real gate. Set it, or the check stays disabled (fails open):update public.app_settings set value = 'Tβ¦' where key = 'slack_team_id';
-
Add yourself as an organizer β allowlist by email (matched on first sign-in, so it must be your Slack email):
insert into public.admins (email) values ('you@example.com');
See AGENTS.md for the backend conventions.
The tree below doubles as a route map β each directory under app/ is a
route, annotated with its purpose. Folders in parentheses (e.g. (site))
are route groups: they scope a shared layout without adding a URL segment.
.
βββ app/ # Next.js App Router routes
β βββ layout.tsx # Root layout (fonts, SEO, theme provider)
β βββ (site)/ # Public site route group (no URL segment)
β β βββ layout.tsx # Site chrome (header, footer)
β β βββ page.tsx # / Social-proof-driven home
β β βββ about/ # /about Values & community manifesto
β β βββ events/ # /events Upcoming (Luma) + past event timeline
β β βββ get-involved/ # /get-involved Onboarding hub (shared layout)
β β β βββ speak-or-facilitate/# /speak-or-facilitate Speaker/facilitator intake
β β β βββ host/ # /host Host intake
β β β βββ sponsor/ # /sponsor Sponsor intake
β β β βββ organizer/ # /organizer Organizer intake
β β β βββ donate/ # /donate (via next.config rewrites) Interac e-transfer donation info
β β βββ tasks/ # /tasks Public board of tasks to pick up + apply
β β βββ legal/ # /legal Legal documents (shared layout)
β β β βββ terms-of-service/ # /terms-of-service
β β β βββ privacy-policy/ # /privacy-policy
β β β βββ code-of-conduct/ # /code-of-conduct
β β βββ resources/ # /resources
β β βββ media-kit/ # /resources/media-kit Brand assets + fast facts
β β βββ design-system/ # /resources/design-system Brand guidelines β design tokens & component reference
β βββ admin/ # /admin Organizer back office (Supabase auth)
β β βββ layout.tsx # Admin chrome + auth gate
β β βββ login/ # /admin/login Sign in with Slack
β β βββ tasks/ # /admin/tasks Manage tasks + applicants
β βββ api/health/ # /api/health Database health check + Supabase keepalive
β βββ auth/callback/ # /auth/callback Slack OAuth callback
β βββ globals.css
βββ components/
β βββ layout/ # Header, Footer
β βββ ui/ # Reusable UI (buttons, cards, sections, etc.)
β βββ contribution/ # Public contribution-board UI
β βββ admin/ # Admin back-office UI
β βββ auth/ # Admin login form
βββ constants/ # Structured data (events, sponsors, board vocabulary)
βββ hooks/ # Reusable React hooks (useMutation)
βββ utils/ # Helpers (theme, Supabase clients)
βββ db/ # Supabase β config, migrations, seed
βββ proxy.ts # Admin session refresh + route guard
βββ docs/prd/ # Product requirements pipeline (01-brief β 06-plan)
βββ .agents/skills/ # Vendored house-standard skills (copied, portable)
βββ .claude/skills/ # Same skills (symlinked to .agents/skills/)
βββ public/ # Static assets (images, downloads, social media dumps)
βββ assets/fonts/ # Build-only files, not served (OG image title font)
βββ next.config.ts
βββ tsconfig.json
See docs/prd/03-solution.md for the full route map and
shared-layout conventions, and the rest of docs/prd/ for product intent,
design tokens, architecture, and the delivery plan.
The site deploys to Vercel. Search engine indexing is
enabled site-wide via the robots metadata in
app/layout.tsx.
Vercel deploys the whole app; the Supabase-backed features (/tasks and
/admin/tasks) additionally need the Supabase project deployed.
pnpm exec supabase link --project-ref <ref> --workdir db
pnpm exec supabase db push --workdir dbThen finish the production wiring: configure Slack for prod (the redirect
URL is the hosted project's https://<ref>.supabase.co/auth/v1/callback β
no tunnel); set NEXT_PUBLIC_SUPABASE_URL/ANON_KEY and
NEXT_PUBLIC_SLACK_TEAM_ID, plus SLACK_WEBHOOK_URL, SLACK_BOT_TOKEN,
and PUBLIC_SITE_URL, in Vercel (read at request time β if missing,
the task routes error rather than show an empty board); and set
app_settings.slack_team_id + seed the first organizer in the production
DB (steps 5β6 above). A missing notification secret degrades to a log
line: applications still record, but nobody is told about them.
Free-tier Supabase projects pause after a week of low database activity.
.github/workflows/supabase-keepalive.yml
pings GET /api/health (app/api/health/route.ts) twice daily (and on manual
workflow_dispatch). The route runs an uncached anonymous SELECT against
contribution_tasks using Vercel's production Supabase env vars, so no extra
GitHub Actions secrets are required. If a scheduled run fails, the workflow
opens or updates a single GitHub issue.
GitHub automatically disables scheduled workflows on public repositories after 60 days with no commits; re-enable the workflow in the Actions tab if the repo goes idle that long.
See CONTRIBUTING.md for contribution guidelines, team
onboarding, and the roadmap.
This redesign was built by TechTank TO volunteers who gave their time to a community they believe in. Thank you to everyone who shipped it π
- Tony Ko
- Rohan Villoth
- Justin Bento
- Jacky Tea
- John Malapit
- Danyal Imran
- Niki Fereidooni
- Danny Kim
- Batstone Christyanton
- Miller Gonzalez
- Taehyeon Kim
- Jyle Vergara
- Nana Ogasawara
And a heartfelt thank you to everyone who built and stewarded earlier versions of techtankto.com. This redesign stands on the foundation, inspiration, and lessons you left behind.
MIT β see the file for details.