Skip to content

richin13/flask-scaffold

Repository files navigation

PyPI PyPI - Python Version license

Flask-Scaffold

Simple tool to generate a brand new Flask application using MongoDB as data backend

Installation

Simply run:

$ pip install flask-mongo-scaffold

Usage

To create a new app called blog do:

$ flaask new blog

Resulting app

├── blog
│   ├── api
│   │   ├── __init__.py
│   │   └── views.py
│   ├── __init__.py
│   ├── models.py
│   └── web
│       ├── __init__.py
│       ├── static
│       │   ├── css
│       │   ├── js
│       │   └── vendor
│       ├── templates
│       │   ├── base.html
│       │   └── index.html
│       └── views.py
├── config.py
├── instance
│   └── config.py
├── requirements.txt
└── run.py

The resulting app is a simple Flask application that comes with:

  • MongoEngine to connect with a MongoDB database backend
  • SemanticUI and JQuery

Additionally, it creates a divisional structure using Flask's blueprints to separate the front-end part of the application from the backend. It ships with the necessary files to setup a simple API.

License

See LICENSE

About

A tool to generate a simple flask project

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published