Skip to content

A boilerplate for web application use Flask/Python, modified of Enferno project, use SqlAlchemy database instead of MongoEngine, already integrate Celery, Flask-Sqlalchemy, Flask-Mail, Flask-Security, Flask-Cache, Flask-Admin ...

rangsutu88/flask-server-starter

 
 

Repository files navigation

This is SQL version modified of Project Enferno (use NoSQL)

Change from Enferno: -------------------* Move database from MongoEngine to Flask-SqlAlchemy * Integrate base Front-end use Bootstrap, Navigation Responsive, already for run production your website.


Tutorials from Enferno -------------

Prerequisites

  • MySql
  • Redis (optional for cache)
  • Python Imaging (jpeg/png) support if you would like to work with images
  • Node.js and npm (optional for front-end stuff)

Quickstart

$ git clone https://github.com/loctv/flask-server-starter.git

$ cd flask-server-starter

$ virtualenv env

$ source env/bin/activate 

$ pip install -r requirements.txt

$ npm install

After that, you should create your admin user, run the following command: :

$ ./manage.py install

and follow the instructions, this will create your first user and first admin role.

Edit the settings.py and change the settings to suit your needs, sepcifically you can change Flask security settings, security keys, MYSQL settings,and Flask mail.

to run the system, you can use a management command: :

$ ./manage.py server

and

$ gulp

Features

  • Flask based
  • Fully working user registration and authentication + user roles via Flask security and Flask Principal
  • Memory caching via Redis/Memcached and Flask cache
  • Simple admin backend via Flask Admin
  • Command line scripting via Flask Script (will be replaced by "click" in the next release)
  • Automatic assets bundling, minification and sass support via gulp
  • MySQL and SqlAlchemy ORM
  • Background tasks via Celery
  • Email integration via Flask Mail
  • Best practices by utilizing Flask blueprints and development/production configuration

Inspiration & Credits

License

MIT licensed.

About

A boilerplate for web application use Flask/Python, modified of Enferno project, use SqlAlchemy database instead of MongoEngine, already integrate Celery, Flask-Sqlalchemy, Flask-Mail, Flask-Security, Flask-Cache, Flask-Admin ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.0%
  • JavaScript 10.0%