Skip to content

pritamkhose/Flask-JWT-oauth

Repository files navigation

JWT Token Auth Python

Secure a Flask REST API with JSON Web Token also deploy on heroku.

Install dependecies

python --version

pip install -r requirements.txt
or
pip3 install -r requirements.txt  // for MAC

Run server

python app.py
or
python3 app.py or nodemon app.py // for MAC

You should be able to run this app on your own system via the familiar invocation and visiting http://localhost:5000.

Run Postman collection api testing

yarn install
yarn test

Set env config variable

name Description e.g.
DEBUG Run flask development-mode True or False
FLASK_ENV Run flask enviorment-mode development
TZ Time zone of server Asia/Calcutta
SECRET_KEY JWT app SECRET_KEY yoursecretkey123789
MONGOURL mongo db server url mongodb://usename:password@serverurl:27017/MONGODB?ssl=true&retryWrites=true
MONGODB mongo database name

References

About

Flask JWT oauth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published