Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.
Claire Huang edited this page Jun 16, 2019 · 3 revisions

Welcome to the CS52 Google Earth Engine x Accountability Counsel wiki! This page tries to explain the structure of the app as of the end of CS52 (June 2019).

File overview

This diagram shows all relevant files, a summary of what each does, and their relationships in the React and Flask apps. Feel free to edit here.

How to run

React

(Assuming you have node and npm installed) To run the React app, navigate into the final directory and run

npm start

Now check localhost:3000 in your favorite browser to see the website.

Flask

(Assuming you have flask and the Earth Engine Python API installed and authenticated) To run the Flask app, navigate into the python-gee directory and run

flask run --host=0.0.0.0

There's nothing much to see, but you can go to localhost:5000 in your browser just to make sure things are up and running. If the Earth Engine authentication succeeded, you should see something like this:

{
  "ee_hello_world": 0.8414709848078965
}

Accounts needed

(All of these are linked to Claire's personal account right now; she would prefer for them to be moved to accounts owned by the Accountability Counsel if they choose to move forward with this codebase.)

  • Google Earth Engine
  • Google Maps API key
  • Firebase
  • Google Cloud Storage (I think?)

Misc things to note

  • The script in download.py currently saves Earth Engine images as tif files. According to the documentation, "You can export images from Earth Engine in GeoTIFF or TFRecord format." Unfortunately, Chrome and Firefox do not appear to support tif rendering (according to this table; only Safari and Microsoft Edge do. TLDR: if you're on a Mac, the images on AnalysisPage will not load unless you use Safari.

Clone this wiki locally