• This repository has been archived on 26/Dec/2020
  • Stars
    star
    182
  • Rank 211,154 (Top 5 %)
  • Language
    CSS
  • License
    Other
  • Created about 14 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

byte-of-python

Beginners book on Python - start here if you don't know programming
Python
2,302
star
2

byte-of-vim

"A Byte of Vim" is a book which aims to help you to learn how to use the Vim editor (version 7), even if all you know is how to use the computer keyboard.
386
star
3

edn_format

EDN reader and writer implementation in Python, using PLY (lex, yacc)
Python
131
star
4

dotvim

DEFUNCT, *no longer used* ; My Vim setup, using vundle
Vim Script
72
star
5

isbnnetin

PROJECT NO LONGER USED, See 'isbnnetinclj'
Ruby
35
star
6

kalam

Live preview of pandoc text
JavaScript
19
star
7

TransformerAPI

Example API server (using swift-nio) that wraps a Swift for TensorFlow model
Swift
18
star
8

vim-markdown-preview

Select Markdown text, render to HTML and preview in browser
Vim Script
15
star
9

rangoli-emacs

An Emacs configuration. A holy, minimal, readable alternative to spacemacs and doom-emacs.
Emacs Lisp
10
star
10

isbnnetinclj2

A quick way to find the online prices for a book in India
Clojure
10
star
11

tmux-pomodoro

tmux plugin for pomodoro technique
Shell
9
star
12

isbnnetinclj

(DEPRECATED) See https://github.com/swaroopch/isbnnetinclj2
JavaScript
7
star
13

wordpress_add_tweet_as_comment

Add any random tweet as a comment to your blog post, to save tweet replies along with your blog comments.
PHP
3
star
14

datafaker

Generate fake data for testing/seed data purposes (generates Indian-sounding names)
Python
2
star
15

backpack_to_gollum

Port content in Backpack (37Signals) account to a local Gollum wiki
Ruby
2
star
16

export-mediawiki-to-wordpress

Export pages from MediaWiki to WordPress
Clojure
1
star
17

scratchpad-openai

Jupyter Notebook
1
star
18

vagrant-pg-shard

Vagrantfile to try out pg_shard
Shell
1
star