Personal and pair project of Introduction to Software Engineering course 软件工程导论-个人与结对项目
Go to file
cyp0633 55d5d50d16
New cookie key and updated readme
2022-09-20 17:14:15 +08:00
cmd Fix: generation failure for primary school 2022-09-20 15:36:24 +08:00
frontend Add problem number restrictions 2022-09-20 16:58:46 +08:00
internal New cookie key and updated readme 2022-09-20 17:14:15 +08:00
LICENSE Update readme and collaborator 2022-09-15 11:36:19 +08:00
go.mod Fix: email send timeout 2022-09-18 21:59:57 +08:00
go.sum Fix: email send timeout 2022-09-18 21:59:57 +08:00
readme.md New cookie key and updated readme 2022-09-20 17:14:15 +08:00

readme.md

中小学卷子生成程序

编译指南

个人项目(命令行)

  1. 下载 Go SDK 1.19 及之后版本
  2. 进入 cmd/cli 目录
  3. 执行 go build 命令
  4. 运行编译出的 cli 可执行文件

结对项目Web未完成

  1. 下载 Go SDK 1.19 及之后版本、Node.js 最新 LTS、yarn
  2. 进入 frontend 目录
  3. 执行 yarn build 命令
  4. 进入 cmd/server 目录
  5. 执行 go build 命令
  6. 创建 conf.ini 文件,填入对应的数据
  7. 运行编译出的 server 可执行文件
  8. 打开 http://localhost:port,其中 port 为 conf.ini 中的端口号

配置文件格式

[mail]
identity = "默认为空即可"
username = "邮箱地址"
password = "邮箱密码"
host = "邮件服务器地址"

[sms]
access_key_id = "阿里云短信服务 AccessKeyId"
access_key_secret = "阿里云短信服务 AccessKeySecret"

[server]
port = 8000 # 服务器端口
cookie_auth = "cookie 加密密钥"