
它会做什么
- 增加公共定价和注册屏幕,合法页面,OAuth登录的完成屏幕.
- 定义每个工作空间所能做的、具有特征、限制、试验和座位定价的许可限制的计划.
- 通过花旗的账单:结账,订阅,发票,信用票据,退税和花旗税,计划保持同步.
- 给工作空间所有者设置:一般,成员,计费和数据导出.
- 给予平台所有者一个后台:工作空间,用户,片段,计划迁移,计费规则和法律文件.
安装
从装入的工程的根部运行羚羊JS CLI @antelopejs/dms 具有数据库模块、电子邮件模块和文件存储的多租户模式:
ajs project modules add @antelopejs/dms-saas
快开始
给模块环境的条纹键 :
// antelope.config.ts
import { defineConfig } from "@antelopejs/interface-core/config";
export default defineConfig({
name: "my-saas",
envOverrides: {
STRIPE_SECRET_KEY: "modules.dms-saas.config.stripe.secretKey",
STRIPE_PUBLISHABLE_KEY: "modules.dms-saas.config.stripe.publishableKey",
STRIPE_WEBHOOK_SECRET: "modules.dms-saas.config.stripe.webhookSecret",
},
modules: {
"dms-saas": {
source: { type: "package", package: "@antelopejs/dms-saas", version: "^0.9.0" },
config: {
stripe: {
secretKey: "sk_test_placeholder",
publishableKey: "pk_test_placeholder",
webhookSecret: "whsec_placeholder",
},
},
},
// dms, api, mongodb, auth-jwt, nodemailer, file-storage-local, ...
},
});
然后指向条纹网路 https://<api>/api/saas/webhooks/stripe,并在 计划登记打开了计划的所有工作空间。 有占位符键,模块仍会运行,需要花脸的块会这么说. 对于没有花纹的部署,也设置 registration.paymentMethod 改为 none,或者注册屏幕保持其牌步.
兼容性
| 软件包 | 支助 | 测试过 |
|---|---|---|
@antelopejs/interface-api | >=0.3.0 <1.0.0 | 0.3.0 |
@antelopejs/interface-api-util | >=0.3.0 <1.0.0 | 0.3.0 |
@antelopejs/interface-core | >=0.4.0 <1.0.0 | 0.4.0 |
@antelopejs/interface-data-api | >=0.6.1 <1.0.0 | 0.6.1 |
@antelopejs/interface-database | >=0.3.0 <1.0.0 | 0.3.0 |
@antelopejs/interface-database-decorators | >=0.2.0 <1.0.0 | 0.2.0 |
@antelopejs/interface-dms | >=0.12.0 <1.0.0 | 0.12.0 |
@antelopejs/interface-dms-automation | >=0.6.0 <1.0.0 | 0.6.0 |
@antelopejs/interface-dms-saas | workspace:^ | 0.6.1 |
模块还需要一个执行 @antelopejs/interface-dms 区域,以及 @antelopejs/dms-frontend 区域中的渲染器,其前端模块宣布在 engines["@antelopejs/dms-frontend"] 联 合 国 frontend-vue/package.json编辑 ajs dms CLI拒绝用这个范围以外的渲染器来建造.
模块使用 API 版本调用 Strebe 2026-08-26.dahlia在更新现有数据库之前,请读作 升级。 。 。 .
文档
向导的消息来源 packages/dms-saas/docs模块将 dms-saas Claude代码技巧 packages/dms-saas/skills,在 antelopeJs.skills。 。 。 .
捐款
这个包裹住在 AntelopeJS/dms-saas pnpm 工作空间旁边 @antelopejs/interface-dms-saas读取 捐款额 编辑 仓库读取器 用于开发命令.