An open API service indexing awesome lists of open source software.

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

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
```