Skip to content

Auth with JWT, good project structure with namespaces and blueprints, SQL_ALCHEMY, custom error handlers, tests and some more are here!

Notifications You must be signed in to change notification settings

blohinn/flask-restplus-full-todo-example-with-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Flask-RESTPlus TODO App Example

This is my example for nice Flask-RESTPlus Flask extension

Features:

  • Expandable, understandable and nice project structure with namespaces and blueprints
  • Auth with JWT with refresh tokens and supporting multiple devices of the same user
  • Custom ValidationExeption and exeption handler for example
  • Tests for example
  • Database interaction with Flask-SQLAlchemy

Getting Started

Installing (in project folder):

py -m venv venv
. venv/Scripts/activate
# In venv:
pip install -r requirements.txt
export CONFIG_TYPE=dev
py manage.py db_init

Running app:

# In venv:
py manage.py run

And go to: http://127.0.0.1:5000/api/v1/

Running tests:

# In venv
export CONFIG_TYPE=tests
py manage.py run_tests

I will be glad to feedback!

About

Auth with JWT, good project structure with namespaces and blueprints, SQL_ALCHEMY, custom error handlers, tests and some more are here!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages