avilum / flask-mongo-boilerplate

A python web app template - Flask + MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A python web app template - Flask + MongoDB

This is a highly configurable python web application boilerplate.
It uses Flask, MongoDB, custom logging and environmental configurations for easy, robust development.

Steps:

  1. Search for 'TODO' in the project to fill the configuration.
  2. python ui/server.py

Architecture:

python-boilerplate/ # root directory
    core/ # configurations, models and abstractions.
    data/ # MongoDB access layer and a factory
    ui/ # Contains a Flask application that uses the db
    tests/ # Any tests you want to implement
    bll/ # Any custom logic you want to use between the UI and the DATA layers.

Configurations

The directory core/configurations contains a lot of configurations.
The most important one is env.py,
DEVELOP_MODE will control the selected db and the logging levels.