Skip to content

About

Community-run Singapore MRT/LRT disruption tracker.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Latest commit

 

History

646 Commits

Folders and files

Repository files navigation

mrtdown-site

Community-run transit monitoring for Singapore MRT/LRT disruptions.

mrtdown-site is a TanStack Start React app deployed to Fly.io. The Node server reads canonical mrtdown data through a Postgres/PostGIS-backed read model populated from data archives by durable Upstash Workflows.

Local Development

  1. Install dependencies:

    npm ci
  2. Create local environment variables:

    cp .env.example .env

    The example points VITE_ROOT_URL, DATABASE_URL, and REDIS_URL at the local services. QSTASH_DEV=true enables the local QStash development server used by Upstash Workflow.

  3. Start local Postgres/PostGIS and Valkey services, then run migrations and seed fixture data:

    docker compose up -d postgres valkey
    npm run db:migrate
    npm run db:seed:fixtures
  4. Start the app:

    npm run dev

    Visit http://localhost:3000.

Local workflows

  • npm run dev:pull and npm run dev:public-holidays trigger the local workflows while the dev server is running.
  • Run npm run verify before publishing. See the quality guide for database test setup and the generated files guide for migrations.

Documentation

Use the documentation index to find subject guides and the execution plan index to find current work.

See the repository working rules before contributing.

About

Community-run Singapore MRT/LRT disruption tracker.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages