cappadocia-viewer-for-nestjs
v0.0.1
Published
It is a debugger used to view request and response data in NestJS applications.
Readme
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 -DYou 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.
