Running the REST API locally

To run this API application locally, the app.py script is passed to the Python executable. This will start the built-in web server on the local machine:

C:\Projects\Chapter13\arenaapp>python app.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Once the server is running, navigate to the API endpoint to get responses from the view functions. If the application is complete, however, the local server won't be powerful enough to handle the API requests. Instead, deployment on a production web server is required.

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.