logicalicy / flask_boostrap

A Flask app that can be used as a foundation for small projects (created initially by following Mongo's tutorial https://docs.mongodb.org/ecosystem/tutorial/write-a-tumblelog-application-with-flask-mongoengine/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-boostrap

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

Installation

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

Run it!

Simples:

python manage.py runserver

About

A Flask app that can be used as a foundation for small projects (created initially by following Mongo's tutorial https://docs.mongodb.org/ecosystem/tutorial/write-a-tumblelog-application-with-flask-mongoengine/)


Languages

Language:Python 61.9%Language:HTML 38.1%