enferno

A Flask-based Framework for the Next Decade.

Github星跟蹤圖

Project Enferno

FOSSA Status

A framework for the next decade, this is a collection of cutting-edge libraries and tools based on Flask framework, that will help build any website or web app (SAAS) extremely fast !

http://enferno.io

Project Enferno

What's New

  • Docker! you can now test the framework directly using docker-compose
  • Removed MongoDB in favour of Postgresql (or Mysql/sqlite) with sqlalchemy.
  • No more front-end bundlers (feel free to integrate your own : webpack, gulp, parcel, etc ..)
  • Upgraded all python libraries (also based on flask 1.x)
  • More tutorials will be coming soon.

Prerequisites

  • Redis
  • Postgresql (Default database) sqlite can be used for dev
  • Python Imaging (jpeg/png) support if you would like to work with images

Quickstart

The fastest and easiest way to run the system is by using docker-compose:

::

$ git clone git@github.com:level09/enferno.git

$ cd enferno

$ docker-compose up

https://asciinema.org/a/219755

Alternatively, you can install it locally:

::

$ git clone git@github.com:level09/enferno.git

$ cd enferno 

$ virtualenv env

$ source env/bin/activate 

$ pip install -r requirements.txt

Edit the settings.py and change the values to suit your needs, specifically you can change Flask security settings, security keys, Redis DB, Mysql settings, and Flask mail.

If you are installing Enferno locally, you will also need to replace "redis" and "postgres" with "localhost" in connection strings.

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

$ export FLASK_APP=run.py
$ flask create-db
$ flask install 

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

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

$ flask run

Running Celery

celery -A enfenro.tasks worker

you can add -b to activate Celery heartbeat (periodic tasks)

A sample task that runs within the app context has been prepared for you within the enfenro/tasks/__init__.py file, this is helpful if you have background tasks that interact with your SQLAlchemy models.

Features

  • Flask based
  • Fully working user registration and authentication + user roles via Flask security
  • Memory caching via Redis and Flask caching
  • Command line scripting via Click
  • Relational database support with sql alchemy ORM
  • Background tasks via Celery
  • Email integration via Flask Mail
  • Files are structured based on best practices by utilizing Flask blueprints and development/production configuration

Showcase

Some of the websites running on Enferno:

Inspiration & Credits

License

MIT licensed.

主要指標

概覽
名稱與所有者level09/enferno
主編程語言CSS
編程語言Python (語言數: 7)
平台
許可證MIT License
所有者活动
創建於2014-07-09 12:57:38
推送於2025-07-07 07:31:18
最后一次提交2025-07-07 09:30:27
發布數22
最新版本名稱v11.2.0 (發布於 2025-04-24 14:06:44)
第一版名稱v0.2 (發布於 2014-08-19 02:22:16)
用户参与
星數543
關注者數22
派生數79
提交數375
已啟用問題?
問題數18
打開的問題數1
拉請求數10
打開的拉請求數0
關閉的拉請求數18
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?