Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 741 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 741 Bytes

Flask JWT Auth

Quick Start

Basics

  1. Activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update project/server/config.py, and then run:

$ export FLASK_APP=project.server
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"

or

$ export FLASK_APP=project.server
$ export APP_SETTINGS="project.server.config.ProductionConfig"

Create the tables and run the migrations:

$ flask db init
$ flask db migrate
$ flask db upgrade

Run the Application

$ flask run

So access the application at the address http://localhost:5000/

Want to specify a different port?

$ flask run --host=0.0.0.0 --port=5000