https://github.com/thedancercodes/flask-jwt-auth
Testing some jwts
https://github.com/thedancercodes/flask-jwt-auth
flask flask-jwt jwt
Last synced: 20 days ago
JSON representation
Testing some jwts
- Host: GitHub
- URL: https://github.com/thedancercodes/flask-jwt-auth
- Owner: TheDancerCodes
- License: mit
- Created: 2017-04-08T15:56:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-12T15:40:13.000Z (about 9 years ago)
- Last Synced: 2025-07-05T07:06:17.960Z (11 months ago)
- Topics: flask, flask-jwt, jwt
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask JWT Auth
[](https://travis-ci.org/realpython/flask-jwt-auth)
## Quick Start
### Basics
1. Activate a virtualenv
1. Install the requirements
### Set Environment Variables
Update *project/server/config.py*, and then run:
```sh
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
```
or
```sh
$ export APP_SETTINGS="project.server.config.ProductionConfig"
```
### Create DB
Create the databases in `psql`:
```sh
$ psql
# create database flask_jwt_auth
# create database flask_jwt_auth_testing
# \q
```
Create the tables and run the migrations:
```sh
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
```
### Run the Application
```sh
$ python manage.py runserver
```
So access the application at the address [http://localhost:5000/](http://localhost:5000/)
> Want to specify a different port?
> ```sh
> $ python manage.py runserver -h 0.0.0.0 -p 8080
> ```
### Testing
Without coverage:
```sh
$ python manage.py test
```
With coverage:
```sh
$ python manage.py cov
```