项目作者: laboox

项目描述 :
A simple template for Flask server using Mongoengine and Flask-security
高级语言: Python
项目地址: git://github.com/laboox/server-flask-template.git
创建时间: 2018-05-09T19:11:21Z
项目社区:https://github.com/laboox/server-flask-template

开源协议:

下载


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

  1. ├── server-flask-template/
  2. ├── server/
  3. ├── controllers/
  4. ├── __init__.py
  5. ├── auth.py
  6. ├── test.py
  7. ├── models/
  8. ├── __init__.py
  9. ├── models.py
  10. ├── __init__.py
  11. ├── config.cfg
  12. ├── core.py
  13. ├── server.py
  14. ├── README.md
  15. ├── MANIFEST.in
  16. ├── package.json
  17. ├── setup.cfg
  18. └── .gitignore

Installation

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

  1. sudo python3 setup.py install

Or to install as development server write:

  1. sudo python3 setup.py develop

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

  1. sudo pip install -e .

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