GithubHelp home page GithubHelp logo

saksoy / flask-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swaroopch/flask-boilerplate

0.0 2.0 0.0 421 KB

A Flask skeleton for Apache/mod_wsgi deployment and many other goodies

License: Other

Python 17.39% CSS 55.62% JavaScript 2.34% Shell 24.64%

flask-boilerplate's Introduction

Flask Boilerplate Project

Introduction

I wanted a super-quick way to create new websites with all my favorite code settings and customizations. Hence, I created this boilerplate project based on the Flask (Python) microwebframework.

Why Flask-Boilerplate? Because you get:

  1. Good code defaults – for example, (1) it uses packages and modules by default so that controllers and models are organized into a standard directory structure and split into multiple files, (2) it merges and compresses your various CSS files into one, your multiple JS files into one, for performance reasons. And so on.
  2. New Project script – sets up everything for you right from generating the secret key (for secure cookies) to integrating memcache (including mimicing Rails.cache.fetch with helpers).
  3. Deploy to a Ubuntu server with a single command – sets up everything for you, including virtualenv, etc.
    • NOTE: The installation script works specifically for Ubuntu Linux, Apache, mod_wsgi only.
  4. jQuery – no webapp is complete without it.
  5. Grid system, via the 960 Grid System – so that you can get started with your UI quickly.
  6. HTML5 goodness, via HTML5 Boilerplate – for a good base UI.

Get Started

git clone git://github.com/swaroopch/flask-boilerplate.git mynewapp
cd mynewapp
pip install Fabric
fab code_init:mynewapp.com
fab env_setup
Write your code in flask_application/controllers/frontend.py
fab server

When you’re ready to deploy your code to a server:

fab server_setup # once per server
fab deploy

When you clone a repo and want to run it:

fab env_setup
fab server

Also See

flask-boilerplate's People

Contributors

swaroopch avatar tescalada avatar selevt avatar

Watchers

saksoy avatar James Cloos avatar

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.