You will find the code in the chapter03/flask_api_server.py file. Please review this file before proceeding to get an overall idea about what it contains before you proceed.
We are running our Flask examples using Flask's built-in HTTP server. This is more than adequate for development purposes; however, it's not recommended for production usage. Consult the Flask documentation section titled Deployment Options for information on how to deploy a Flask application with production-quality web servers. You'll find a link in the Further reading section to the official Flask website and documentation.
To test the Python server perform the following steps:
- Run our RESTful API server with the following command:
(venv) $ python flask_api_server.py
... truncated ...
NFO:werkzeug: * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
... truncated ...
The second to last line in the preceding code block indicates that...