gabriel-tessier / HeadsUp

Blogging site based on Python on top of Flask Framework (using ElasticSearch)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

HeadsUp (Web)

Web Application built with python and Flask Framework to host a super awesome Blogging site.

Getting Started

Prerequisites

Install the following software on your PC

  • Python 2.7.X
  • MySQL & MySQL Python Lib ElasticSearch and elasticsearch-py
  • Node.js and NPM (It's required by Bower, Grunt)
  • Ruby (Required by Compass)
  • Git (duh!)

Installation

  1. Clone the repository $ git clone <path to repository> and $ cd into it
  2. Install virtualenv ** 2 bis. Run $ pip install -r requeriments.txt
  3. run $ npm install
  4. run $ bower install
  5. run $ grunt --help to see list of available tasks
  6. Locate the file config.py.txt and save as config.py, and configure its properties accordingly
  7. run $ grunt to setup the development environment or $ grunt dist to setup the production environment

Grunt Tasks

Tasks are configured per package basis on grunt-tasks and are defined at the file grunt-tasks/aliases.js, here is the list of tasks that are specifically defined for this project.

  • grunt : Generate the assets files for Development mode (Default). Is a combination of the tasks frontend-dev and backend-dev.
  • grunt frontend-dev : Build the assets for the frontend side of the project for Development mode
  • grunt backend-dev : Build the assets for the backend side of the project for Development mode
  • grunt dist : Generate the assets files for Production mode. Is a combination of the tasks frontend-dist and backend-dist.
  • grunt frontend-dist : Build the assets for the frontend side of the project for Production
  • grunt backend-dist : Build the assets for the backend side of the project for Production

(**) virtualenv Installation (on linux) virtualenv --python=/usr/bin/python2.7 venv # fix the path to your python if need . venv/bin/activate # you should have a (venv) in your prompt deactivate # to leave your venv

About

Blogging site based on Python on top of Flask Framework (using ElasticSearch)


Languages

Language:HTML 40.2%Language:Python 28.8%Language:CSS 23.2%Language:JavaScript 7.7%Language:Mako 0.1%Language:Shell 0.0%