This is the back-end part of Project Fire Bird
See front-end part at https://github.com/pkuhelper-web/phoenix
- Install
python3
,mysql
,uwsgi
and maybenginx
on your server python3 -m pip install -r requirements.txt
- Create a MySQL database for this backend to use, and set up an account
- Fill in app configurations in
config.example.py
:MYSQL_*
: input your database connection credentialSECRET_KEY
: generate a random, secure string
- Implement your token-based account system and registration system in
user_control.example.py
- Fill in uWSGI configurations in
wsgi.example.ini
- Fill in splash screen configurations in
splashes/__init__.example.py
- Rename all example files:
config.example.py
toconfig.py
user_control.example.py
touser_control.py
wsgi.example.ini
towsgi.ini
splashes/__init__.example.py
tosplashes/__init__.py
- Run
python3 init_db.py
and inputCREATE TABLES
- Run
uwsgi --ini wsgi.ini
to start up the backend server - Update your web server (maybe
nginx
) configuration to pass API requests to wsgi socket
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.