Go to file
lhf a454cedb18
Merge pull request #22 from lbaf23/feat/export-document
feat: export evidence
2021-08-28 15:59:54 +08:00
conf refactor: modify home page (#13) 2021-08-09 19:18:57 +08:00
controllers feat: teacher clone project 2021-08-16 14:00:32 +08:00
models feat: teacher clone project 2021-08-16 14:00:32 +08:00
routers refactor: remove redux (#20) 2021-08-13 10:56:22 +08:00
swagger refactor: use beego run front end 2021-07-24 10:38:54 +08:00
tests refactor: use beego run front end 2021-07-24 10:38:54 +08:00
util refactor: remove redux (#20) 2021-08-13 10:56:22 +08:00
web style: reformat code 2021-08-16 14:13:37 +08:00
.dockerignore fix: add .dockerignore 2021-07-29 12:11:49 +08:00
.gitignore refactor: remove redux (#20) 2021-08-13 10:56:22 +08:00
Dockerfile fix: bug modify (#12) 2021-08-08 17:04:55 +08:00
LICENSE Initial commit 2021-07-18 21:27:35 +08:00
README.md fix: bug modify (#12) 2021-08-08 17:04:55 +08:00
docker-compose.yml fix: bug modify (#12) 2021-08-08 17:04:55 +08:00
go.mod fix: home page (#15) 2021-08-10 20:26:42 +08:00
go.sum fix: home page (#15) 2021-08-10 20:26:42 +08:00
main.go fix: bug modify (#12) 2021-08-08 17:04:55 +08:00

README.md

OpenPBL

System of PBL.

前端 react

配置文件内容参考

web/.env

REACT_APP_OSS_REGION='oss-cn-hangzhou'
REACT_APP_OSS_ACCESSKEYID=
REACT_APP_OSS_ACCESSKEYSECRET=
REACT_APP_OSS_BUCKET=

REACT_APP_CASDOOR_ENDPOINT=

REACT_APP_CLIENT_ID=
REACT_APP_APP_NAME=
REACT_APP_CASDOOR_ORGANIZATION='openct'

GENERATE_SOURCEMAP=false
SKIP_PREFLIGHT_CHECK=true
cd web
yarn install
yarn build

后端 beego

新建配置文件

vim conf/app-dev.conf

配置文件内容参考

conf/app.conf

appname = OpenPBL
httpaddr = 0.0.0.0
autorender = false
copyrequestbody = true
EnableDocs = true
SessionOn = true
copyrequestbody = true

httpport = 5000
driverName = mysql
dataSourceName = root:123@tcp(localhost:3306)/
dbName = openpbl_db

redisEndpoint = 
jwtSecret = CasdoorSecret

casdoorEndpoint =
clientId =
clientSecret =
casdoorOrganization = "openct"

开发环境

bee run -runargs -RUNMODE=dev

go build main.go
./main -RUNMODE dev

生产环境

go build main.go
./main -RUNMODE prod

运行参数 RUNMODE

dev: 加载顺序 conf/app-dev.conf  conf/app.conf
prod: 加载顺序 conf/app-prod.conf  conf/app.conf
: 加载顺序 conf/app.conf