A Paste template for Flask application.
- PasteScript
To create a boilerplate, you run paster create
command as follows.
$ paster create --list-template
Available templates:
basic_package: A basic setuptools-enabled package
flask_boilerplate: A boilerplate for Flask project
paste_deploy: A web application deployed through paste.deploy
$ paster create --template=flask_boilerplate test_project
Selected and implied templates:
Flask-Boilerplate#flask_boilerplate A boilerplate for Flask project
Variables:
egg: test_project
package: test_project
project: test_project
Enter app_name (Flask application name): app
Enter description (One-line description of the package) ['']: Test application
Enter author (Author name) ['']:
Enter author_email (Author email) ['']:
...
$ ls test_project
LICENSE README.rst requirements.txt setup.cfg tests
MANIFEST.in app run.py setup.py tox.ini
Procfile config.ini runtime.txt test_project.egg-info uwsgi.ini
First, please resolve dependencies of this project.
$ pip install -r requirements.txt
After some fix, please run tests.
$ tox
# or
$ python setup.py test