A web app for Autism Home Base, a non-profit that runs social and recreational programs for autistic adults, their friends and families. It replaces the Excel-based planning of the 8-week summer program with a weekly planner that tracks attendance and sends updates to each pod's families.
Built by the UofT Web Dev Club. The full client brief is in the team Google Drive under Overview.
| Part | Technology |
|---|---|
| Front end | Next.js (App Router) with React and JavaScript |
| Back end | Supabase (PostgreSQL, auth, storage, row-level security) |
| Hosting | Vercel and Supabase |
# 1. Download the code
git clone <repository-url>
cd uoftwebdev_ahb
# 2. Install dependencies (takes a minute)
npm install
# 3. Create your local environment file
cp .env.example .env.local # on Windows: copy .env.example .env.local
# 4. Start the dev server
npm run devOpen http://localhost:3000. Edits you save show up in the browser automatically.
The default .env.local uses fake data (NEXT_PUBLIC_USE_MOCK_DATA=true), so you do not need any Supabase keys to work on the UI.
The pages and components are empty files that the team fills in. The foundation is already provided: global styles, the PT Sans font, the design tokens (including the primary colour), shared constants and helpers, the Supabase connection and the database schema. Until the pages are built the app shows a blank page.
| Command | What it does |
|---|---|
npm run dev |
Start the app locally |
npm run lint |
Check code for problems |
npm run build |
Make a production build (run before opening a PR) |
All variables are documented in .env.example. Never commit .env.local.
| Variable | Needed for UI work? | Purpose |
|---|---|---|
NEXT_PUBLIC_USE_MOCK_DATA |
Yes (true) |
Use fake data from src/mock-data |
NEXT_PUBLIC_SUPABASE_URL |
No | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
No | Supabase public key |
SUPABASE_SERVICE_ROLE_KEY |
No | Server-only admin key. Never share it |
src/
app/ Pages. A folder name is the URL (app/(app)/calendar = /calendar)
components/
ui/ Shared: Button, Card, Input, Badge
layout/ Navbar, PageHeader
auth/ Login form
dashboard/ Dashboard cards
calendar/ Weekly calendar
attendance/ Attendance table
announcements/ Announcement list and form
staff-feed/ Shared staff notes
mock-data/ Fake data shaped like the database tables
lib/ Constants, helpers and the Supabase clients
styles/ Design tokens (colours, fonts, spacing)
supabase/ Database schema and security rules (schema.sql)
docs/ Team documentation
.github/ PR template, issue templates, CI
The tables and the access rules for admin, staff and member roles are in supabase/schema.sql. To set it up, create a Supabase project, open SQL Editor, paste the file and run it. Then copy the project URL and anon key from Project Settings > API into .env.local.
Use src/lib/supabase/client.js in the browser and src/lib/supabase/server.js (admin key) only in server code.
- Branching: see
docs/branching.md. Never push tomain; open a pull request. - Tickets:
docs/tasks.mdand the project Kanban board (docs/kanban.md). - Design: the Figma file and
docs/design-system.md. Use tokens, not hard-coded colours. - Architecture:
docs/architecture.md. - Maintainer setup:
docs/github-setup.md.