VitorViana98 / firstpypapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask example

Using Flask to build a Restful API Server.

Installation

Install with pip:

$ pip install -r requirements.txt

Flask Application Structure

.
|──────app/
| |────__init__.py
| |────api/
| | |────__init__.py
| | |────cve/
| | |────user/
| | |────oauth/
| |──────config.Development.cfg
| |──────config.Production.cfg
| |──────config.Testing.cfg
| |────dao/
| |────model/
| |────oauth/
| |────util/
|──────run.py
|──────tests/

....
 
## Run Flask
### Run flask for develop

$ python routes.py

In flask, Default port is `5000`

About

License:MIT License


Languages

Language:Python 100.0%