a454cedb18
feat: export evidence |
||
---|---|---|
conf | ||
controllers | ||
models | ||
routers | ||
swagger | ||
tests | ||
util | ||
web | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
docker-compose.yml | ||
go.mod | ||
go.sum | ||
main.go |
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