Skip to content

abenrob/fire_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fire_api

simple flask REST api to grab and regurgitate USFS major fires CSV as geoJSON

get the app: abenrob$ git clone https://github.com/abenrob/fire_api.git

set up the virtual environment (need virtualenv installed)

abenrob$ virtualenv venv

dependencies installed with pip:

abenrob$ venv/bin/pip install -r requirements.txt

run app locally:

abenrob$ venv/bin/gunicorn run-api:app

try it out:

abenrob$ curl http://localhost:8000/api/v1.0/2013-09-18

now rig-up an app!

--or-- copy the geojson object output from the above step, and paste it in geojson.io to view the geo-goodness!

--or-- visit the app deployed to heroku:

http://fire-api.herokuapp.com/

http://fire-api.herokuapp.com/api/v1.0/2013-09-18

About

simple flask REST api to grab and regurgitate USFS major fires CSV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages