https://github.com/derlin/flask-rest-api-tuto
A little tutorial on creating REST api with Flask (python3)
https://github.com/derlin/flask-rest-api-tuto
Last synced: 4 months ago
JSON representation
A little tutorial on creating REST api with Flask (python3)
- Host: GitHub
- URL: https://github.com/derlin/flask-rest-api-tuto
- Owner: derlin
- License: apache-2.0
- Created: 2019-06-23T12:41:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T11:27:48.000Z (almost 7 years ago)
- Last Synced: 2025-10-20T14:55:25.729Z (8 months ago)
- Language: HTML
- Size: 32.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask REST Api with Python 3
=> tuto slides: http://bit.ly/flask-rest-api-tuto <=
## Kezako
This is a little Flask App showing [my] good practices for creating REST apis with Flask.
It presents two main methods:
* using basic Flask (and Flask-wtf),
* using Flask-RESTful
More importantly, it shows how to:
* structure an app
* test an app
* use setuptools to package an app
## Setup
```bash
git clone git@github.com:derlin/flask-rest-api-tuto.git
cd flask-rest-api-tuto
python setup.py install
```
## Run
From the terminal:
```bash
python -m llapp run
```
Using docker (will be available on http://localhost:80):
```bash
docker build --rm -t llapp .
docker run --rm -d --name llapp -p 80:80 llapp
```
Using gunicorn:
```bash
pip install gunicorn
gunicorn "llapp:create_app()"
```