A Flask app that can be used as a foundation for small projects (created initially by following Mongo's Tumblelog tutorial).
flask-login
was added to this project by following hints from this article.
Using:
flask
flask-script
WTForms
mongoengine
flask_mongoengine
flask-login
Best to create a virtualenv
to isolate Python environments:
pip install virtualenv
virtualenv venv
Then, activate your virtualenv
and install all the requirements:
source venv/bin/activate
pip install -r requirements.txt
If you've never worked with MongoDB before, here is a way to quickly get started with Homebrew:
brew update
brew install mongodb
sudo mkdir -p /data/db
sudo chown `id -u` /data/db
mongod
When you are done working with the project, deactivate the virtualenv
(you can always re-activate later with source venv/bin/activate
):
deactivate
Simples:
python manage.py runserver