xmcp / ddl-bee

the deadline manager: back-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bee from Project Fire Bird

This is the back-end part of Project Fire Bird

See front-end part at https://github.com/pkuhelper-web/phoenix

Build Instruction for Self-Hosting

  1. Install python3, mysql, uwsgi and maybe nginx on your server
  2. python3 -m pip install -r requirements.txt
  3. Create a MySQL database for this backend to use, and set up an account
  4. Fill in app configurations in config.example.py:
    • MYSQL_*: input your database connection credential
    • SECRET_KEY: generate a random, secure string
  5. Implement your token-based account system and registration system in user_control.example.py
  6. Fill in uWSGI configurations in wsgi.example.ini
  7. Fill in splash screen configurations in splashes/__init__.example.py
  8. Rename all example files:
    • config.example.py to config.py
    • user_control.example.py to user_control.py
    • wsgi.example.ini to wsgi.ini
    • splashes/__init__.example.py to splashes/__init__.py
  9. Run python3 init_db.py and input CREATE TABLES
  10. Run uwsgi --ini wsgi.ini to start up the backend server
  11. Update your web server (maybe nginx) configuration to pass API requests to wsgi socket

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

About

the deadline manager: back-end

License:GNU General Public License v3.0


Languages

Language:Python 100.0%