Michael Herman d252dd88c7 Added flask CORS
2017-08-13 17:02:40 -06:00
2017-08-13 17:02:40 -06:00
2017-01-24 07:15:25 -07:00
2017-01-23 19:49:11 -07:00
v1
2016-12-26 14:48:24 -07:00
2017-02-09 08:02:30 -07:00
2017-01-24 07:15:25 -07:00
2017-08-13 17:02:40 -06:00

Flask JWT Auth

Build Status

Want to learn how to build this project?

Check out the blog post.

Want to use this project?

Basics

  1. Fork/Clone
  2. Activate a virtualenv
  3. Install the requirements

Set Environment Variables

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

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

or

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

Set a SECRET_KEY:

$ export SECRET_KEY="change_me"

Create DB

Create the databases in psql:

$ psql
# create database flask_jwt_auth
# create database flask_jwt_auth_test
# \q

Create the tables and run the migrations:

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate

Run the Application

$ python manage.py runserver

Access the application at the address http://localhost:5000/

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080

Testing

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov
Description
just testing some jwts
Readme MIT 65 KiB
Languages
Python 100%