You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
kappa123 | 5 years ago | |
.gitignore | 6 years ago | |
.python-version | 6 years ago | |
.travis.yml | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
requirements.txt | 6 years ago | |
setup.py | 6 years ago | |
zappa_settings.json | 6 years ago |
README.md
Flask Skeleton
Flask starter project...
Quick Start
Basics
- Create and activate a virtualenv
- Install the requirements
Set Environment Variables
Update project/server/config.py, and then run:
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
or
$ export APP_SETTINGS="project.server.config.ProductionConfig"
Create DB
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data
Run the Application
$ python manage.py runserver
So access the application at the address http://localhost:5000/
Want to specify a different port?
$ python manage.py runserver -h 0.0.0.0 -p 8080
Testing
Without coverage:
$ python manage.py test
With coverage:
$ python manage.py cov