Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
iamjwe eda94a173e | 3 years ago | |
---|---|---|
.github/workflows | 3 years ago | |
.vscode | 3 years ago | |
config | 3 years ago | |
db-init | 3 years ago | |
initial | 3 years ago | |
src | 3 years ago | |
test | 4 years ago | |
types | 3 years ago | |
.dockerignore | 3 years ago | |
.env.example | 4 years ago | |
.eslintrc.js | 4 years ago | |
.gitignore | 3 years ago | |
.prettierrc | 4 years ago | |
Dockerfile | 3 years ago | |
Jenkinsfile | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
nest-cli.json | 4 years ago | |
package.json | 3 years ago | |
tsconfig.build.json | 4 years ago | |
tsconfig.json | 4 years ago | |
yarn.lock | 3 years ago |
在项目根目录下,需要有一个生成一个名称为 develop.env 的文件,里面记录了项目相关的配置信息
文件内容示例如下:
# Log
LOGGING_DIR=logs
LOGGING_LEVEL=debug
# Auth
JWT_SECRET_KEY=Sign key for JWT
SECRET_KEY=Sign key for Password
# OAuth
MS_CLIENT_ID=6d93837b-d8ce-48b9-868a-39a9d843dc57
MS_CLIENT_SECRET=eIHVKiG2TlYa387tssMSj?E?qVGvJi[]
WX_APP_ID=wx403e175ad2bf1d2d
WX_SECRET=dc8cb2946b1d8fe6256d49d63cd776d0
# Server
APP_HOST=localhost
APP_PORT=5001
# Database
DB_HOST=localhost
DB_TYPE=mysql
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD=123456
DB_NAME=user_group
ADMINISTRATOR_USER_NAME="["xianjie.han", "ADMIN"]"
ADMINISTRATOR_PASSWORD=123456
部分配置项说明:
JWT_SECRET_KEY: JWT 的签名 key
SECRET_KEY:加密用户密码的盐
ADMINISTRATOR_USER_NAME: admin 权限的用户信息,是 Array 的格式
设置淘宝源
yarn config set registry 'https://registry.npm.taobao.org'
安装依赖
yarn
编译
yarn build
docker run -p9301:6379 redis
在 9301 端口运行 redis
docker run --name mysql -e MYSQL_ROOT_PASSWORD=123456 -d -p 3306:3306 mysql:8.0
在 3306 端口运行 mysql
docker run --name postgres -e POSTGRES_PASSWORD=123456 -d -p 5432:5432 postgres:10.12
在 5432 端口运行 postgres
yarn start:prod
项目使用的 typeorm 会自动初始化数据库
依瞳人工智能平台用户管理服务端
Text Go Dockerfile Makefile other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》