taylor224 / dp-tornado

MVC Web Application Framework with Tornado, Python 2 and 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dp-tornado

Pypi Status Build Status Docs Requirements Status (Master) Requirements Status (Develop) Coverage Status

MVC Web Application Framework with Tornado, Python 2 and 3

To install the package run:

pip install dp-tornado

Environment Setup

Virtualenv:

$ pip install virtualenv
$ virtualenv ./venv
$ . ./venv/bin/activate

Install dp-tornado:

$ pip install dp-tornado

Run

Startup:

$ dp4p init app_dir
$ dp4p run app_dir

or:

$ dp4p init --path app_dir
$ dp4p run --path app_dir

or:

$ mkdir app_dir
$ cd app_dir
$ dp4p init
$ dp4p run

Run with Docker (hub.docker)

Find out more information about dp4p docker, Here.

$ docker pull why2pac/dp4p:latest-py34  # py27, py34, py35, pypy27
$ docker run --name "dp4p-example" -d -p 8080:52848 -v "$(pwd)/app_dir:/data/app" why2pac/dp4p:latest-py34

Inspired by

David, Matthew and Max

About

MVC Web Application Framework with Tornado, Python 2 and 3

License:MIT License


Languages

Language:Python 89.5%Language:JavaScript 6.6%Language:HTML 1.6%Language:Shell 1.4%Language:CSS 0.6%Language:Dockerfile 0.3%