Git Product home page Git Product logo

tornado-start's Introduction

Tornado-start

Introduction

Tornado-start is a template for building a Tornado web application in 5 minutes.

Author

Guillaume Vincent

Requirements

  • python 2.7
  • pip 1.3
  • virtualenv 1.9

Start

All you have to do is to:

  • clone this repository

    git clone https://github.com/guillaumevincent/tornado-start.git PROJECT_DIR_NAME

  • move into PROJECT_DIR_NAME folder

    cd PROJECT_DIR_NAME/

  • delete .git/ folder and license file

    rm -rf .git/ LICENSE

  • rename tornado_start folder by YOUR_APPLICATION_NAME

    mv tornado_start/ YOUR_APPLICATION_NAME/

  • rename APPLICATION_NAME = 'YOUR_APPLICATION_NAME' in settings.py

  • rename import in runserver.py

    from tornado_start.handlers import Index

    become

    from YOUR_APPLICATION_NAME.handlers import Index

Make a virtualenv

  • mkdir ~/.env/
  • virtualenv ~/.env/YOUR_APPLICATION_NAME/
  • . ~/.env/YOUR_APPLICATION_NAME/bin/activate
  • pip install -r requirements.txt

And run tornado server

  • python runserver.py

Tests

Add some test_xxx.py files in test folder and run tests with runtests.py

Go further

you can :

  • add some python libraries you use in requirements.txt

  • configure your deploy/fabfile.py file for deployment in production

  • add some alias in your .profile:

    alias venvYOUR_APPLICATION_NAME='. ~/.env/YOUR_APPLICATION_NAME/bin/activate'

    alias cdYOUR_APPLICATION_NAME='. ~/workspace/YOUR_APPLICATION_NAME/'

  • add some LICENSE file

  • init git repository

    git init .

License

Tornado-start is under MIT License. See LICENSE file for more information

Version

1.0.0

tornado-start's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.