https://github.com/joshfriend/flask-restful-demo
A simple Flask-RESTful demo application
https://github.com/joshfriend/flask-restful-demo
Last synced: 3 months ago
JSON representation
A simple Flask-RESTful demo application
- Host: GitHub
- URL: https://github.com/joshfriend/flask-restful-demo
- Owner: joshfriend
- Created: 2014-08-23T04:49:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-09T15:35:34.000Z (almost 8 years ago)
- Last Synced: 2025-01-11T20:40:42.081Z (3 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 165
- Watchers: 8
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - joshfriend/flask-restful-demo - A simple Flask-RESTful demo application (Python)
README
Flask-RESTful Demo
======This is sample Flask application created to show off some of the features of
the Flask-RESTful library.Getting Started
===============Requirements
------------* Python
* GNU Make:
* Windows: http://cygwin.com/install.html
* Mac: https://developer.apple.com/xcode
* Linux: http://www.gnu.org/software/make (likely already installed)
* virtualenv: https://pypi.python.org/pypi/virtualenv#installationInstallation
------------Create a virtualenv:
$ make env
Create the development database:
$ make upgrade
Run a development server:
$ make serve
Run the tests:
$ make test
Run static analysis:
$ make pep8
$ make pep257
$ make pylint
$ make flake8
$ make check # includes all checksResources
---------That guy who wrote the O'Rielly book on Flask did a PyCon presentation. I got
the `paginate` decorator from there:http://pyvideo.org/video/2668/writing-restful-web-services-with-flask
Lots of examples of Flask "Best Practices":
https://github.com/sloria/cookiecutter-flask
What I based my sick makefile off of:
https://github.com/jacebrowning/template-python
The flask-restful docs:
http://flask-restful.readthedocs.org/en/latest/