Skip to content

About

Client and server for the ZAPP atlas

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ZAPP Atlas

API for the ZAPP zebrafish toxicology atlas.

FastAPI server backed by the LinkML-generated zebrafish-toxicology-atlas-schema. The previous Flask upload endpoint and the first-pass React/Vite UI are archived under legacy/; neither is wired into the current build.

Dev quickstart

just install
just build-client
just extdata           # ontology bundle; needs docker, a few minutes the first time
just dev-api           # http://localhost:8000

That serves everything: the HTML pages at /, the JSON API at /api, the React editing client at /my-submissions and /research-groups/…, and the ontology files at /extdata.

just extdata builds the read-only ontology bundle (ZP, ZFA, ChEBI labels) into extdata/dist. The app runs without it, but anything that needs ontology data won't work: /extdata answers 404 and label lookups fall back to the CURIE. Rebuild it after changing anything in extdata/; see extdata/README.md.

To work on the React client with hot reloading, run just dev-client in one terminal and just dev-api-hmr in another, then open http://localhost:8000/my-submissions — the page comes from FastAPI, not from Vite.

just test runs the pytest suite. just seed reseeds the dev DB (seeding also runs automatically on FastAPI startup unless ZAPP_SKIP_SEED=1).

See ARCHITECTURE.md for how the two surfaces fit together, how the LinkML schema drives both, and how to sign in locally without ORCID credentials.

Deploy

Any image build needs the ontology bundle in extdata/dist, so run just extdata first. The deploy workflows fetch or build it themselves.

  • Fly.io — fly deploy (uses the top-level Dockerfile + fly.toml). Publishing a GitHub release deploys it: a full release goes to production and to beta, a prerelease to beta only (fly.beta.toml, at https://beta.atlas.zappfish.org). Beta's database is emptied on every deploy.
  • GCP Cloud Run — just gcp-ship builds, pushes, and deploys with a GCS-backed volume for the SQLite DB.

About

Client and server for the ZAPP atlas

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages