philj0st / flaskblog

microblog using Flask, Jinja2, pymongo and mLab

Home Page:https://nameless-shore-63940.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

installation

clone repo

$ git clone https://github.com/phipix01/flaskblog
$ cd flaskblog

install pip, make sure you're using the latest version

$ sudo apt-get install python-pip python-dev build-essential
$ pip install --upgrade pip

install virtualenv. use sudo so pip is able to change the mode of /usr/local/bin/virtualenv to 755. (-v = --verbose)

$ sudo pip install virtualenv -v

create and activate a virtual environment for this project folder

$ virtualenv venv
$ source venv/bin/activate

installing the dependencies won't pollute /usr/lib/python2.7/site-packages now and they will co-exist on a project by project basis

$ pip install flask
$ pip install pymongo

if everything worked you can now run python app.py and visit http://localhost:5000

note: if MONGODB_URI is not found try $ source ~/.bashrc and then $ source venv/bin/activate again.

prerequisites

set up some a MongoDB (i used mongoLab) and add MONGODB_URI to environment variables

About

microblog using Flask, Jinja2, pymongo and mLab

https://nameless-shore-63940.herokuapp.com/


Languages

Language:HTML 62.4%Language:Python 37.6%