Planetary Response Network
Create Zooniverse subjects via Planet Labs API using area of interest (AOI) queries.
There are few external dependencies the NPM modules expect to exist in the local environment. These are ImageMagick, Gdal, and Exiftool. The NPM packages are merely wrappers that run the local versions of these executables. Please ensure these are installed before proceeding.
Once the above dependencies are installed, clone thsi repo and
npm install. A number of environmental variables must be set:
PLANET_API_KEYto retrieve the mosaics. You'll need an API key from Planet Labs
- to deploy to subjects to your Zooniverse project you'll need to build a project and set the variables
ZOONIVERSE_PASSWORDwith your username and password, respectively
AMAZON_S3_BUCKET(an S3 bucket in order to deploy subjects)
SESSION_SECRETa secret phrase for hashing sessions
PANOPTES_API_SECRETthe client id and secret from the Doorkeeper apps page
docker-compose up. The main application container and a redis container will be started. You can then upload KML files at http://localhost:3736.
Running outside of Docker
With Redis queue
1) Set up a redis server.
REDIS_HOST=your-redis-host.com npm start (if you need to set a custom port for redis, use
Without Redis queue
If you don't want to manage running a Redis queue, you can run the app directly with
node server --use-queue=0 to have the app spawn generation tasks directly instead of posting them to the Redia queue.
We have some coverage via unit tests which can be run with