Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 621 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 621 Bytes

accountbook_server

account book server project

构建运行步骤

1. 创建虚拟环境并安装依赖

$ pipenv install

2. 运行虚拟环境

$ pipenv shell

3. 创建数据库并执行迁移

启动MySQL服务, 创建数据库accountbook:

CREATE DATABASE accountbook DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

检查数据库连接配置, 执行建表迁移:

$ python manage.py migrate

4. 运行服务

$ python manage.py runserver