yetHandsome / flask-skeleto

flask-skeleto for docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build status coverage report

Flask Skeleton

Flask starter project...

Quick Start

Basics

  1. Activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update skeleton/server/config.py, and then run:

$ export APP_SETTINGS="skeleton.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="skeleton.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

Testing1

$ tox

About

flask-skeleto for docker

License:MIT License


Languages

Language:Python 70.5%Language:HTML 25.1%Language:Shell 1.6%Language:Mako 1.6%Language:Dockerfile 0.7%Language:JavaScript 0.3%Language:CSS 0.2%