https://github.com/engelmi/ts-aspect-nestjs-example
Example project showing the use of ts-aspect with nestjs
https://github.com/engelmi/ts-aspect-nestjs-example
aop aspect-oriented-programming nestjs ts-aspect typescript
Last synced: 2 months ago
JSON representation
Example project showing the use of ts-aspect with nestjs
- Host: GitHub
- URL: https://github.com/engelmi/ts-aspect-nestjs-example
- Owner: engelmi
- Created: 2021-10-24T09:37:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T11:25:06.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T16:06:13.833Z (10 months ago)
- Topics: aop, aspect-oriented-programming, nestjs, ts-aspect, typescript
- Language: TypeScript
- Homepage:
- Size: 153 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using ts-aspects with NestJs
This repository is based on the [TypeScript Starter Repository](https://github.com/nestjs/typescript-starter) of NestJS. It extends the "Hello World" controller endpoint by adding a logging aspect to the called service using [ts-aspect](https://github.com/engelmi/ts-aspect).
## Installation
```bash
$ npm install
```
## Running the app
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
```
## Test
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
```