Skip to content

A small framework to rapidly implement model-view-controller web app's using Python, PostgreSQL/SQLite/etc and Redis.

Notifications You must be signed in to change notification settings

Raisess/mini-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini MVC

Model-View-Controller made easy, keeping it simple.

Features:

  • OAuth2 authentication plugin:
    • Google
  • Relational databases integration:
    • PostgreSQL
    • SQLite
  • No relational databases integration:
    • Firestore
  • Fast memory access databases:
    • Redis
    • Memory caching
  • SMTP client for sending email's;
  • View's and email's templating using Jinja2

Check all our plugins here.

Installing the CLI:

$ git clone https://github.com/Raisess/mini-mvc.git
$ cd mini-mvc && ./install.py

Creating and running your project:

$ mini-mvc init my-project
$ cd my-project
$ ./src/main.py
  • Configuration ENV's:
    • DEBUG: Enable flask debug mode;
    • USE_SESSION: Enable the application to store sessions data;
    • SESSION_PERMANENT: Indicates if the session will live forever, default: 0;
    • SESSION_TYPE: Select the session store type, default: filesystem;
    • LAZY_LOAD: When disabled will store all views in the application memory, default: 0
    • USE_SCHEDULER: Enable the schedulers start (only enable this if you are using scheduled jobs);
    • check .env.example file for more variables

Update the __core of my project:

When you run this script your src/__core will be update with the latest mini-mvc version:

$ ./scripts/update.sh

Generating resources:

$ mini-mvc gen controller|model|view|job <name>

Or

$ mini-mvc gen controller|model|view|job <namespace>/<name>

Framework documentation

Core features are documented here.

About

A small framework to rapidly implement model-view-controller web app's using Python, PostgreSQL/SQLite/etc and Redis.

Resources

Stars

Watchers

Forks

Releases

No releases published