This is a sample application for "How to Build an API with Python and Flask" on Tech.Pro.
The data used for this application is a geocoded version of Infochimps's UFO Sightings dataset, and can be downloaded here.
This repo has the following checkpoints
- 00_configuration
- 01_sighting_model
- 02_sightings_collection
- 03_sighting_element
- 04_limit_offset
- 05_location_radius
- 06_production
- 07_CORS
You can switch to each checkpoint to see what the code looks like up to that point by either cloning the repo or using the GitHub branch menu.
First clone this repo by running
$ git clone git://github.com/cuttarug/sightings.git
Then fetch each checkpoint to see what the code looks like at that point by running $ git checkout [<checkpoint-name>]
. For example, to view the code at checkpoint "03_sighting_element", type
$ git checkout 03_sighting_element
Alternatively, you can use GitHub's web interface to view each checkpoint. Click on the branch menu and select the checkpoint you want to view, shown below: