Go to file
lbaf23 109ae2a10d refactor: change table column 2021-08-03 13:31:24 +08:00
conf refactor: move my project to head bar 2021-07-25 09:29:45 +08:00
controllers refactor: change table column 2021-08-03 13:31:24 +08:00
models refactor: change table column 2021-08-03 13:31:24 +08:00
openpbl-landing refactor: change table column 2021-08-03 13:31:24 +08:00
routers refactor: change table column 2021-08-03 13:31:24 +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 style: clear code 2021-07-30 23:30:46 +08:00
.dockerignore fix: add .dockerignore 2021-07-29 12:11:49 +08:00
.gitignore feat: add docker file and config files 2021-07-24 14:04:47 +08:00
Dockerfile fix: split yarn build and go build layer 2021-07-29 15:53:26 +08:00
LICENSE Initial commit 2021-07-18 21:27:35 +08:00
README.md docs: add react env docs 2021-07-24 14:04:07 +08:00
docker-compose.yml fix: update dockerfile 2021-07-29 11:17:38 +08:00
go.mod refactor: use beego run front end 2021-07-24 10:38:54 +08:00
go.sum refactor: use beego run front end 2021-07-24 10:38:54 +08:00
main.go fix: jwt secret 2021-07-24 21:39:20 +08:00

README.md

OpenPBL

System of PBL.

开发

后端

新建开发配置文件

vim conf/app-dev.conf

配置文件内容参考

conf/app.conf

前端

新建开发配置文件

vim openpbl-landing/.env.development

配置文件内容参考

openpbl-landing/.env

部署

后端 beego

新建部署配置文件

vim conf/app-prod.conf

配置文件内容参考

conf/app.conf

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

httpport = 5000
driverName = mysql
dataSourceName = root:root@tcp(db:3306)/            # docker-compose 部署环境下 localhost 改为 db
dbName = openpbl_db

casdoorEndpoint = http://localhost:8000
clientId =                                          # casdoor 应用 id
clientSecret =                                      # casdoor 应用 secret
jwtSecret =                                         # jwt 加密密钥
casdoorOrganization = "openct"                      # casdoor 应用所属组织

前端 react

新建部署配置文件

vim openpbl-landing/.env.production

配置文件内容参考

openpbl-landing/.env

REACT_APP_BASE_URL='http://localhost:5000/api'
REACT_APP_OSS_REGION: 'oss-cn-hangzhou'             # 阿里云 oss region
REACT_APP_OSS_ACCESSKEYID: '123'                    # oss accesskeyId
REACT_APP_OSS_ACCESSKEYSECRET: '123'                # oss accessKeySecret
REACT_APP_OSS_BUCKET: 'bucket'                      # oss bucket