Coder Social home page Coder Social logo

flask-plate's Introduction

flask-plate

This is yet another boiler plate for flask, with bootstrap, redis & formencode.

Get Started

  1. Install Redis & Run server

    http://redis.io

  2. Install latest formencode from Github

     git clone git://github.com/formencode/formencode.git
     cd formencode
     python setup.py install
     
  3. Clone flask-plate from Github.

    git clone https://github.com/haje01/flask-plate.git
  4. Rename 'flask-plate' folder as your project name, and cd into it.

  5. Install required python modules. ( Make virtual environment beforehand, if you want to )

    pip install -r requirements.txt
  6. Find 'myapp's in the following files and change it into your own app's name.

         ./admin
         ./application.py
         ./myapp/config.py
         ./myapp/util.py
         ./myapp.uwsgi.xml
         ./myapp  (change folder name)
     
  7. Run application, then test 'http://localhost:8000' with you browser.

    python application.py
  8. If everything goes well, remove .git folder and init new repository for your project.

  9. Edit as your own!

Unittest

To unittest your application, modify tests.py and run it. You can override settings by edit tests.cfg file.

Documentation by Sphinx

If you want to use Sphinx as document tool,

  1. download latest Sphinx source and install (Note: current PIP version(1.2b) has timezone error).

         wget https://bitbucket.org/birkenfeld/sphinx/get/default.zip
         python setup.py build
         python setup.py install
     
  2. Move into docs/ folder and init sphinx document root.

         sphinx-quickstart
     
  3. If you have more than one language to support, make locale folder in translations/ folder:

         mkdir -p translations/ko
     

    Then extract message strings into _build/locale by:

         make gettext
     

    And add locale_dirs = ['translations'] to the end of conf.py

    Init .po files by docs/babel-init. After translations is done, compile them by docs/babel-compile.

Command Line Completion

In order to activate admin script's tab completion:

  1. If you are using MacOSX, upgrade to bash 4.2 & install bash-completion.

    http://techscienceinterest.blogspot.kr/2010/05/change-to-new-bash-shell-41-for-mac-os.html

    http://blog.jeffterrace.com/2012/09/bash-completion-for-mac-os-x.html

  2. Admin Command line Completion

    https://pypi.python.org/pypi/argcomplete#global-completion

flask-plate's People

Contributors

haje01 avatar

Stargazers

Chris Smith avatar Pyunghyuk Yoo avatar SangHee Kim avatar Kang Hyojun avatar Hyunwoo Park avatar

Watchers

SangHee Kim avatar James Cloos avatar  avatar Hakhyun Kim avatar Chris Smith avatar  avatar

Forkers

hakhyun-kim

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.