Skip to content

Repository files navigation

geoquery

AidData's GeoQuery, built using Django and Svelte.

Development

docker compose down && docker compose up
cd backend

Migrate the database and create a superuser:

uv run manage.py migrate
uv run manage.py createsuperuser

Get the frontend going:

cd ../frontend
bun install

Site will be viewable at http://localhost:5173/

Import some boundaries:

uv run manage.py ingest_geoboundaries --active --public --iso3 AFG GHA

Import some datasets:

The ./data directory (.gitignored) is mounted into the containers at /data, so reference dataset paths absolutely as /data/....

  • Copy some input dataset data to ./data, e.g. ./data/rasters/esa_landcover/
  • Put a dataset JSON into ./data, e.g. esa_landcover.json
  • Edit the path at the top of the JSON file to e.g. "/data/rasters/esa_landcover"
  • uv run manage.py ingest_dataset /data/esa_landcover.json

Documentation

All documentation can be found in /docs.

To view the documentation in your web browser, follow the following steps:

  • Run the docs server from the root of this repository:
    uv run --only-group docs zensical serve
  • Visit http://127.0.0.1:8001 in your browser
  • Changes to files in /docs will render live in your browser!

Releases

Packages

Used by

Contributors

Languages