A python with flask seed project.
-
Install Python 3.5.x (x64)
https://www.python.org/downloads/release/python-353/ -
Install flask
$ pip3 install flask# clone the repository
$ git clone https://github.com/robertoachar/python-flask-seed.git
# change the directory
$ cd python-flask-seed
# run
$ python3 -m python_flask_seed
# output from flask
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)GET / HTTP/1.1
Host: localhost:5000200 OK
{
"message": "Hello from flask!"
}POST /welcome HTTP/1.1
Host: localhost:5000
{
"name": "Roberto"
}200 OK
{
"message": "Hello Roberto!"
}400 BAD REQUEST
{
"error": "name is required"
}[GET, POST] /not_found HTTP/1.1
Host: localhost:5000
404 NOT FOUND
{
"error": "route not found"
}Install dependencies
$ npm installRun tests
$ npm testext install python
# install autopep8
$ pip install autopep8
# install pylint
$ pip install pylintFile > Preferences > Settings > User Settings
{
"python.pythonPath": "C:\\Python35"
}