December 2018
Intermediate to advanced
500 pages
12h 33m
English
Now, we can run the service/service.py script that launches Flask's development server to compose and send HTTP requests to our unsecured and simple web API (we will definitely add security later). Execute the following command. Make sure you have the virtual environment activated:
python service/service.py
The following lines show the output after we execute the previous command. The development server is listening at port 5000:
* Serving Flask app "service" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting ...