Skip to content

Commit

Permalink
Add getting started to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zacdezgeo committed Jul 24, 2024
1 parent 86c1e5c commit c06ad7f
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# Space2Stats

Consistent, comparable, authoritative data describing sub-national variation is a constant point of complication for World Bank teams, our development partners, and client countries when assessing and investigating economic issues and national policy. This project will focus on creating and disseminating such data through aggregation of geospatial information at standard administrative divisions, and through the attribution of household survey data with foundational geospatial variables.
Consistent, comparable, authoritative data describing sub-national variation is a constant point of complication for World Bank teams, our development partners, and client countries when assessing and investigating economic issues and national policy. This project will focus on creating and disseminating such data through aggregation of geospatial information at standard administrative divisions, and through the attribution of household survey data with foundational geospatial variables.

## Getting Started Locally

- Setup the database:
```
docker-compose up -d
```

- Create a `db.env` file:
```.env
DB_HOST=localhost
DB_PORT=5439
DB_NAME=postgis
DB_USER=username
DB_PASSWORD=password
DB_TABLE_NAME=space2stats
```

- Load our dataset into the database
```
./postgres/download_parquet.sh
python postgres/chunk_parquet.py
./postgres/load_parquet_chunks.sh
```

> You can get started with a subset of data for NYC with `./load_nyc_sample.sh` which requires changing your `db.env` value for `DB_TABLE_NAME` to `space2stats_nyc_sample`.
- Access your data using the Space2statS API! See the [example notebook](notebooks/space2stats_api_demo.ipynb).



0 comments on commit c06ad7f

Please sign in to comment.