Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aaronw-be/flask-api-project

A project kick starter for python flask framework
https://github.com/aaronw-be/flask-api-project

Last synced: 11 days ago
JSON representation

A project kick starter for python flask framework

Awesome Lists containing this project

README

        

# FAPS -- Flask-Api-Project-Skeleton
A project kick starter for python flask framework

### Frameworks
* Flask
* Flask-RESTful
* Flask-SQLAlchemy
* Flask-JWT-Extended
* flask_marshmallow

### Installing
* set virtual env for python: `py -3 -m venv venv` (python 3 on windows)
* activate virtual environment: `venv\Scripts\activate`
* install dependencies: `pip install -r requirement.txt`

### Running at PowerShell (dev mode)
```shell
$env:FLASK_APP="server"
$env:FLASK_ENV="development"
flask run # start application
```

### Model
Run `py create_tables.py` to generate basic db table

### Tree structure
```
┌─ server
│   ├── resources
│   │   ├── book.py
│   │   └── __init__.py
│   ├── models.py
│   ├── jwt
│   ├── bp
│   │   ├── auth.py
│   │   └── __init__.py
│   └── __init__.py
├── setup.py
├── requirements.txt
├── create_tables.py
├── README.md
└── MANIFEST.in
```