0.0.1 • Published 8 months ago
cappadocia-viewer-for-nestjs v0.0.1
Cappadocia Viewer for NestJS
Cappadocia Viewer for NestJS is a debugger used to view request and response data in NestJS applications.
Installation
Before debugging your NestJS app, it is essential to install the Cappadocia Viewer desktop app, which allows you to debug your NestJS app. To get the Cappadocia Viewer desktop app, visit the releases page and download the app.
After installing the Cappadocia Viewer desktop app, you can install the Cappadocia Viewer for NestJS package using npm.
npm i cappadocia-viewer-for-nestjs -D
You can debug requests using the CappadociaViewerInterceptor
interceptor method.
const app = await NestFactory.create(AppModule);
const isDevelopmentEnvironment = true;
if (isDevelopmentEnvironment) {
const { CappadociaViewerInterceptor } = await import(
'cappadocia-viewer-for-nestjs'
);
app.useGlobalInterceptors(new CappadociaViewerInterceptor());
}
await app.listen(3000);
After adding it, you can see requests in the Cappadocia Viewer app. Moreover, you can change the isDevelopmentEnvironment
variable using the config value.
0.0.1
8 months ago