Skip to content

avilum/flask-mongo-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.