Steps to Update the Langman API
Explore how to update the Langman API by implementing JWT-based authentication. Learn to run the Flask server, generate access tokens, and make authenticated POST, GET, PUT, and DELETE API requests. Understand securing data integrity and deploying with HTTPS for safe token transmission.
We'll cover the following...
We'll cover the following...
Run server
First, we need to run it just as we did before, except that we need to
specify the JWT_SECRET_KEY environment variable.
$ export FLASK_APP=server.app
$ export FLASK_ENV=dev_lite
$ export FLASK_JWT_SECRET_KEY=9876543210blastoff
$ pipenv run flask ...