Weekly Planner
Getting started

Local setup

Install dependencies, push Instant schema/permissions, and use project scripts.

Local setup

Install

npm ci

InstantDB

  1. Copy .env.example.env and set INSTANT_APP_ID and VITE_INSTANT_APP_ID to the same Instant app id.
  2. Admin token in .env from the Instant dashboard.
  3. Optionally lock schema and permissions:
npm run push:schema
npm run push:perms

instant.schema.ts re-exports src/db/schema.jssrc/db/schema.js is the source of truth.

Scripts

CommandWhat it does
npm run devVite dev server (port 3000)
npm run buildProduction → dist/
npm run lintESLint
npm run typecheckCheck core JavaScript modules
npm run testVitest regression tests
npm run checkLint, typecheck, test, build
npm run previewPreview production build
npm run push:schemaPush Instant schema
npm run push:permsPush Instant permissions
npm run sync:auth-originsRegister Instant auth origins (Vercel previews)

Docs site

This documentation app is separate:

cd docs
npm ci
npm run dev

On this page