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 LibElasticSearch and elasticsearch-py- Node.js and NPM (It's required by Bower, Grunt)
- Ruby (Required by Compass)
- Git (duh!)
Installation
- Clone the repository
$ git clone <path to repository>
and$ cd
into it - Install virtualenv **
2 bis. Run
$ pip install -r requeriments.txt
- run
$ npm install
- run
$ bower install
- run
$ grunt --help
to see list of available tasks - Locate the file config.py.txt and save as config.py, and configure its properties accordingly
- 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 modegrunt backend-dev
: Build the assets for the backend side of the project for Development modegrunt 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 Productiongrunt 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