Skip to content

rocicorp/onboarding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onboarding

This repo is a small, self-contained playground for the Zero installation guide. It’s meant for experimenting when wiring Zero into your own project would be too much work.

Branches

  • main: starting point (intentionally incomplete; you'll see TODOs).
  • maximal: finished end state after completing the guide (view on GitHub, or git switch maximal).

Repo tour

  • apps/web: TanStack Start app (UI + API routes).
  • packages/db: Drizzle DB schema + Postgres migrations/seed data.
  • packages/zero: Zero schema, queries, and mutators.

Key files

Run it (optional)

Prereqs: Bun + Docker.

  • Install deps: bun install
  • In one terminal, start Postgres (includes schema + seed data): cd packages/db && docker compose up
  • In another terminal, start the web app: cd apps/web && bun dev

On maximal, also run the zero-cache-dev command from the Installation guide (the example app expects Zero at http://localhost:4848).

Trying your own schema

If you want a working baseline to modify, start from maximal, then:

  • Edit packages/db/src/drizzle.ts
  • Re-generate the Zero schema: cd packages/zero && bun run generate

About

Barebones music-themed playground, using Zero/Tanstack Start/Drizzle.

Topics

Resources

License

Stars

Watchers

Forks