Skip to content

youth-camp-root/web-monitor-backend

Repository files navigation

Web-Monitor-Backend

A backend server for our project web-monitor-dashboard

Dependencies

  • flask: Python server of choise
  • flasgger: Used to generate the swagger documentation
  • flask-marshmallow: My favourite serializer
  • apispec: Required for the integration between marshmallow and flasgger

Set Up

  1. Clone 本仓库
  2. 配置数据库接口,创建 instance/config.py 并写入:
    MONGODB_SETTINGS = {
        'db': 'MongoDBAtlas',
        'host': "mongodb://......"
    }
  3. 安装依赖
    pip install -r requirements.txt
  4. 启动服务端
    export FLASK_DEBUG=true
    flask run
    win
    set FLASK_DEBUG=true
    flask run
  5. 访问 http://localhost:port/apidocs 查看 swagger 文档

Releases

No releases published

Packages

No packages published

Languages