Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

AHB Weekly Planner

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.

Tech stack

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

Getting started

# 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 dev

Open 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.

Useful commands

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)

Environment variables

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

Project structure

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

Database

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.

How we work

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages