Digital display app for TinkerSpace — rotates between maker profiles and the event calendar on a kiosk-style screen.
Live site: deployed from main via Netlify
This project uses pnpm only. npm install and yarn are blocked.
git clone https://github.com/tinkerhub/tinkerspace_digital.git
cd tinkerspace_digital
pnpm install
pnpm dev:mockThe app runs at http://localhost:3000.
Use:
pnpm dev:mockThis starts:
- the React dev server on
http://localhost:3000 - a local mock API server on
http://localhost:4010
The mock server exposes the same read endpoints the screen uses in production:
GET /checkin/activeGET /v1/public/event/all
The seeded mock payloads include active makers, a live event, upcoming events, and a populated calendar so contributors can work on the UI without access to the internal TinkerHub services.
If you have access to the real backend services:
cp .env.example .env
# fill in the values in .env
pnpm devCopy .env.example to .env and set:
| Variable | Description |
|---|---|
REACT_APP_API_BASE_URL |
Base URL for maker/checkin data and the public events feed |
REACT_APP_SUPABASE_URL |
Supabase project URL — backs the admin dashboard, screen registration/pairing, and live config sync |
REACT_APP_SUPABASE_ANON_KEY |
Supabase anon key (safe to expose client-side; access is enforced by Row Level Security policies, not by keeping this secret) |
Which TinkerSpace a display shows, and the Calendar/Makers rotation durations, are configured remotely via /admin instead of env vars — see Local setup with Supabase below to run it locally.
- A screen with no assigned space shows a short pairing code and waits.
- Log into
/admin(Supabase Auth), find it under Unclaimed Screens, claim it, and assign a space. - Changes (space, durations) push live to the screen via Supabase Realtime — no redeploy, no manual refresh.
The Supabase CLI is a dev dependency (pnpm add -D supabase already run) with the schema checked into supabase/migrations/.
pnpm exec supabase start # spins up Postgres/Auth/Realtime/Studio locally (needs Docker)It prints a local API URL and anon key — put those in .env. Create an admin login user via the printed Studio URL (Authentication → Add user). pnpm exec supabase stop shuts it down.
To apply the same schema to a real hosted Supabase project instead:
pnpm exec supabase link --project-ref <your-project-ref>
pnpm exec supabase db push| Command | Description |
|---|---|
pnpm dev |
Start the development server |
pnpm dev:mock |
Start the development server with the built-in mock backend |
pnpm mock:server |
Start only the local mock backend on port 4010 |
pnpm build |
Create a production build |
pnpm build:mock |
Create a production build configured against local mock API URLs |
pnpm test |
Run tests |
pnpm deploy |
Build and publish to GitHub Pages (legacy; production uses Netlify) |
pnpm supabase:start / :stop |
Start/stop the local Supabase stack (Postgres/Auth/Realtime/Studio) |
pnpm supabase:push |
Apply migrations to the linked hosted Supabase project |
Production builds run on Netlify from the main branch. netlify.toml is already configured:
- Build command:
pnpm run build - Publish directory:
build - Node version: 22
Set these environment variables in the Netlify site dashboard (Site configuration → Environment variables):
| Variable | Description |
|---|---|
REACT_APP_API_BASE_URL |
Base URL for maker/checkin data and the public events feed |
REACT_APP_SUPABASE_URL |
Your hosted Supabase project's URL |
REACT_APP_SUPABASE_ANON_KEY |
Your hosted Supabase project's anon key |
If the Netlify build fails on Corepack/pnpm version resolution, add COREPACK_INTEGRITY_KEYS=0 as a build environment variable.
- Fork tinkerhub/tinkerspace_digital on GitHub.
- Clone your fork:
git clone https://github.com/<your-username>/tinkerspace_digital.git cd tinkerspace_digital
- Add the upstream remote and create a branch off
develop:git remote add upstream https://github.com/tinkerhub/tinkerspace_digital.git git fetch upstream git checkout -b your-feature-branch upstream/develop
- Make your changes, then commit and push to your fork:
git add . git commit -m "describe your change" git push origin your-feature-branch
- Open a pull request into
developontinkerhub/tinkerspace_digital.
Keep PRs focused and test locally with pnpm dev and pnpm build before submitting.
developis the integration branch — all contributor PRs land here first.mainis the production branch — merging tomaintriggers the Netlify production deploy.- After changes on
developare tested and verified, mergedevelop→mainto release to production.