Basic Flask app with Bootstrap, webassets, WTForms and social login
flask-boilerplate is a simple Flask app built on top of Flask-SQLAlchemy, Flask-WTF, Flask-Login, Authomatic and Flask-Assets that you can use to jump-start that new project.
Specifically, flask-boilerplate comes with:
- Bootstrap-based layout
- asset bundles for LESS, CSS and JS
- flash message support
- WTForms example
- OAuth login with Facebook, Google+ and Twitter
- cd to a comfy location
- git clone git@github.com:g4b1nagy/flask-boilerplate.git
- sudo npm install -g less
- sudo ln -s /usr/bin/nodejs /usr/bin/node # in case you get "node: command not found" in bash
- cd flask-boilerplate/
- virtualenv -p $(which python3) venv
- source venv/bin/activate
- pip install -r requirements.txt
- cp config_example.py config.py
- update the config.py file to suit your needs
- ./manage.py db_create
- ./manage.py runserver
- point your browser to http://localhost:5000/