Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

115 Commits

Folders and files

Repository files navigation

Quake Watch

Earthquakes around the world, as they happen — explained for people who aren't seismologists.

Why

Most earthquake sites are built for experts. This one shows where an earthquake happened, how big it was and what it meant for the places you care about.

Status

A placeholder shell while the globe redesign is built: the home page shows the wordmark, in English and Spanish. Old map and detail URLs redirect to the home page. The previous table and map app lives on archive/v1.

Getting started

  1. Use the Node version in .nvmrc: nvm use
  2. Install dependencies: pnpm install
  3. Install the browser for integration tests: pnpm exec playwright install chromium
  4. Start the dev server: pnpm dev (http://localhost:3000)
Script What it does
dev Run the app locally with hot reload
build Build the app for production
start Serve the production build
check Run build, smoke, typecheck, lint, format check, coverage and integration tests
test Run the test suite
test:coverage Run the test suite with a coverage report
test:integration Run browser-mode integration tests (Chromium via Playwright)
test:smoke Check redirects, raw HTML and share images in the build, with stubbed agencies
typecheck Type-check the project without emitting files
lint Lint the code with oxlint
format Format the code with oxfmt
format:check Check formatting without writing changes

Stack

TanStack Start + React, TanStack Query, Tailwind CSS. Exact versions live in package.json.

Data

Deploy (Railway)

  1. In Railway, choose New Project → Deploy from GitHub repo → Vizzuality/quake-watch.
  2. Railway builds with Railpack, which reads packageManager and engines.node from package.json, runs pnpm build and starts the app with pnpm start. The server listens on Railway's PORT.
  3. In Settings → Networking, click Generate domain.
  4. Enable PR environments in Project Settings → Environments to get a preview per pull request. See Railway environments.

CI

GitHub Actions runs build, raw-HTML smoke tests against the build, typecheck, lint, format check, tests with coverage and browser-mode integration tests on pushes to main and on pull requests. Draft pull requests are skipped until they are marked ready for review. The workflow is in .github/workflows/ci.yml.

Glossary

Domain terms (Earthquake, Magnitude, Intensity and others) are defined in CONTEXT.md.

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages