【文件属性】:
文件名称:nestjs-tdd
文件大小:244KB
文件格式:ZIP
更新时间:2021-02-22 01:59:37
TypeScript
一个渐进式的框架,该框架受启发,用于构建高效且可扩展的服务器端应用程序。
描述
使用NestJS + Typescript的简单CRUD来实现TDD
安装
$ 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
$ npm run test:cov
【文件预览】:
nestjs-tdd-main
----.gitignore(386B)
----.env.example(78B)
----package.json(2KB)
----commitlint.config.js(66B)
----.lintstagedrc.json(63B)
----package-lock.json(411KB)
----src()
--------app.module.ts(785B)
--------videos()
--------main.ts(649B)
--------shared()
----.env.test(84B)
----tsconfig.json(339B)
----docker-compose.yml(197B)
----.github()
--------workflows()
----.eslintrc.js(663B)
----README.md(3KB)
----tsconfig.build.json(111B)
----test()
--------videos()
--------videos.e2e-spec.ts(3KB)
--------jest-e2e.json(183B)
----.huskyrc.json(140B)
----.prettierrc(51B)
----yarn.lock(307KB)
----nest-cli.json(64B)