/server-flask-template

A simple template for Flask server using Mongoengine and Flask-security

Primary LanguagePython

Features

  • Simple Flask API server

  • Avoid any confusing and complex python or flask tricks

  • Flexible API structure

  • Good booster for researches

  • Using MongoDB through flask-mongoengine

  • Authentication and authorization through flask-security

Simple Flask Server Template

A very simple real life template using Flask and MongoDB.

Packagist PyPI - Python Version

Table of Contents

Directory tree

├── server-flask-template/
│   ├── server/
│   │   ├── controllers/
│   │    │   ├── __init__.py
│   │    │   ├── auth.py
│   │    │   ├── test.py
│   │   ├── models/
│   │    │   ├── __init__.py
│   │    │   ├── models.py
│   │   ├── __init__.py
│   │   ├── config.cfg
│   │   ├── core.py
│   │   ├── server.py
├── README.md
├── MANIFEST.in
├── package.json
├── setup.cfg
└── .gitignore

Installation

To install server package permanently write this in project's root:

sudo python3 setup.py install

Or to install as development server write:

sudo python3 setup.py develop

Or if you want to use flask debug mode and just install dependencies try:

sudo pip install -e .

To learn more about deploying flask applications and debug servers read here.