/mojito-server

Mojito 服务端

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Mojito 服务端

环境要求

  • Node.js >= 16.0.0
  • MongoDB >= 4.2.0

开发

npm install
npm run dev

生产

创建环境变量文件

.env.production

GITHUB_CLIENT_SECRETS=github secrets
GITHUB_CLIENT_ID=github client id
GITEE_CLIENT_SECRETS=gitee secrets
GITEE_CLIENT_ID=gitee client id
JWT_SECRET=jwt secret
npm install
npm start

OAuth 配置说明

Github OAuth

Gitee OAuth

Docker

docker pull drinkjs/mojito-server
docker run --env-file=./.env.production -p 3840:3840 --name=mojito_server -d -e MONGO_CONNECTION=mongodb://MyHost:27017/ drinkjs/mojito-server