/bbs-admin-backend

university bbs admin backend

Primary LanguagePythonApache License 2.0Apache-2.0

BBS-Admin-Backend

Start

中文

At first, clone the repository to your computer with below command.

git clone https://github.com/weijiang1994/bbs-admin-backend.git

Then configure the runtime environment with below command.

cd bbs-admin-backend
cp resources/conf.example.yaml resources/conf.yml
pip install -r requirments.txt
vim .env

Input below content to the .env file.

MAIL_SERVER='your email server support smtp or other protocol'
MAIL_USERNAME='your email '
MAIL_PASSWORD='your email stmp login password'
SECRET_KEY=production
DATABASE_USER= 'database username'
DATABASE_PWD= 'database password'
DATABASE_HOST=127.0.0.1
DATABASE_PORT=3306

Run serve with below command

flask run --port 8008