Boilerplate code that adds some structure to a Flask project. Uses Zurb's Foundation framework on the frontend and MongoDB for data persistence. This also includes session support and login/logout functionality.
- myApp/controllers: Backend server logic
- myApp/model: Database storage abstractions
- myApp/templates: HTML files
- myApp/static: Javascript and CSS files
By default, this is made to work with cloud9 - hence the calls to the $IP and $PORT environment variables.
Installation requires flask, flask-mongokit, and flask-bcrypt. In c9, you will need to open a terminal, then run the following:
easy_install pip
pip install flask
pip install flask-mongokit
pip install flask-bcrypt
You will need to change the file db/secrets.template.py
to simply db/secrets.py
,
and update the values within accordingly.
Then to run the app, in the same folder as run.py
, run python run.py
.
- A setup script for customizing the application name