/accountbook_server

:notebook_with_decorative_cover: 记账本 Django 后端

Primary LanguagePythonMIT LicenseMIT

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