The goal of this project is to rewrite and consolidate the existing codebases for creating heatmaps of satellite data to create an interactive heatmap
- Navigate to the data-ingest directory,
cd data-ingest
- Create a file named
.env
.env
should contain login credentials to the PostgreSQL DB, ie.export DB_HOST=change_me export DB_USERNAME=change_me export DB_PASSWORD=change_me export DB_NAME=change_me
-
-
If you have the dependencies installed locally you can now run
python3 ingest.py
andsat_data.geojson
will be generated -
If you have conda installed then you can create a conda enviornment using
env.yml
inside theDocker
directory, you can then runpython3 ingest.py
inside this environment to generatesat_data.geojson
-
- Install rust, rust-lang.org is the page you're looking for
- This project uses nightly features of rust, this means you will need a nightly version of rust, run
rustup toolchain install nightly
- To swtich to a nightly build of rust run
rustup override set nightly
- Move
sat_data.geojson
to theheatmap-service
directory, don't change the file name or the server will fail to find the data - Navigate into the
heatmap-service
directory,cd heatmap-service
- Run
cargo run
in the terminal and you now have a locally running version of the server, if the terminal you entered this command into closes you will need to repeat this step in a new terminal
- Navigate to the
heatmap-client
directory,cd heatmap-client
- Install trunk, run
cargo binstall trunk
- Run
trunk serve --open
, this should open a page in your default browser, if you would prefer the command not open a page remove--open
and it will serve the client without opening a new page
Elliott Lewandowski
Lily Larson