Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.03 KB

wtl_service

A containerized web app to source stories for the Where To Look database.

Dependencies

The webapp/utilities repo is a submodule.

A number of out-of-repo files are required or required for full functionality:

  • Required API keys

    • .env
    • webapp/.google_config.json
  • Various learned models to be served. All are loaded exclusively through app.py (see therein) and stashed in:

    • models/
  • U.S. state geojsons to retrive stories by state or county

    • webapp/static_geojsons/us_county_geojson.csv
    • webapp/static_geojsons/us_allstates.json
    • webapp/static_geojsons/us_evpstates.json

Developing

The image service is based a containerized Flask web app. To test the app, run from the top-level directory:

docker-compose build
docker-compose up

Deploying

On AWS simply run in detatched mode:

docker-compose up -d

For Heroku via Heroku container service:

heroku container:push --recursive -a <heroku-app-name>
heroku container:release web worker -a <heroku-app-name>