Secure a Flask REST API with JSON Web Token also deploy on heroku.
python --version
pip install -r requirements.txt
or
pip3 install -r requirements.txt // for MAC
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.
yarn install
yarn test
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 |