【文件属性】:
文件名称:consumer
文件大小:136KB
文件格式:ZIP
更新时间:2021-03-28 02:28:35
TypeScript
描述
Api Consumer是管理信用帐户的示例。
该api基于CQRS和带有框架和 + 数据库的事件源架构。
安装
# eventstore + mongodb + mongodb express
$ docker-compose up
# persistent subscription to eventstore
$ ./scripts/init-subscription.sh
# api
$ npm install
运行应用
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
测试
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage