RESTful API service of KaiYuanShe
- HTTP server: Koa
- Controller framework: Routing Controllers
- Model framework: Class Transformer & Class Validator
- ORM framework: TypeORM
- API document: Swagger
- Mock API: OpenAPI backend
- Entry: https://service.kaiyuanshe.cn/
- Document: https://service.kaiyuanshe.cn/docs/
- Schema: https://service.kaiyuanshe.cn/docs/spec/
- Generate a PAT with
read:packages
authorization - Run Sign-in command in your terminal, and use PAT as password:
npm login --scope=@kaiyuanshe --registry=https://npm.pkg.github.com
npm i pnpm -g
pnpm i @kaiyuanshe/kys-service -D
Name | Usage |
---|---|
DATABASE_URL |
PostgreSQL connection string |
APP_SECRET |
encrypt Password & Token |
WEB_HOOK_TOKEN |
Authorization token of Custom Web hooks |
AZURE_BLOB_CONNECTION |
Azure Blob Storage service |
LEANCLOUD_API_HOST |
API domain of LeanCloud |
LEANCLOUD_APP_ID |
App ID of LeanCloud |
LEANCLOUD_APP_KEY |
App Key of LeanCloud |
LARK_APP_ID |
App ID of Lark API |
LARK_APP_SECRET |
App Secret of Lark API |
HR_BASE_ID |
BI Table ID of HR data in Lark |
PERSON_TABLE_ID |
BI Data Table ID of Person data in Lark |
npm i pnpm -g
pnpm i
pnpm dev
or just press F5 key in VS Code.
pnpm upgrade:dev
npm start
pnpm upgrade:pro
pnpm pack-image
pnpm container
git checkout master
git tag v1.0.0 # this version tag comes from ./package.json
git push origin master --tags
git checkout master
git tag type-v1.0.0 # this version tag comes from ./type/package.json
git push origin master --tags