feat: initialize NestJS application with global exception handling and request context
- Added nest-cli.json for Nest CLI configuration. - Created package.json with dependencies and scripts for building, testing, and linting. - Implemented AppController and AppService with a basic "Hello World!" response. - Established AppModule with middleware for request ID and global interceptors for response standardization. - Introduced ContextService for managing request-scoped context using AsyncLocalStorage. - Developed custom decorators for response messages and standardized error handling with DTOs. - Implemented global exception filter to handle various HTTP exceptions and Prisma errors. - Added middleware for generating unique request IDs. - Configured TypeScript settings for the project. - Created comprehensive unit and e2e tests for the application.
This commit is contained in:
31
.vscode/settings.json
vendored
Normal file
31
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"workbench.colorCustomizations": {
|
||||
"activityBar.activeBackground": "#03d068",
|
||||
"activityBar.background": "#03d068",
|
||||
"activityBar.foreground": "#15202b",
|
||||
"activityBar.inactiveForeground": "#15202b99",
|
||||
"activityBarBadge.background": "#9e42fc",
|
||||
"activityBarBadge.foreground": "#e7e7e7",
|
||||
"commandCenter.border": "#15202b99",
|
||||
"editorGroup.border": "#03d068",
|
||||
"panel.border": "#03d068",
|
||||
"sash.hoverBorder": "#03d068",
|
||||
"sideBar.border": "#03d068",
|
||||
"statusBar.background": "#03d068",
|
||||
"statusBar.border": "#03d068",
|
||||
"statusBar.debuggingBackground": "#d0036b",
|
||||
"statusBar.debuggingBorder": "#d0036b",
|
||||
"statusBar.debuggingForeground": "#e7e7e7",
|
||||
"statusBar.foreground": "#15202b",
|
||||
"statusBarItem.hoverBackground": "#029e4f",
|
||||
"statusBarItem.remoteBackground": "#03d068",
|
||||
"statusBarItem.remoteForeground": "#15202b",
|
||||
"tab.activeBorder": "#03d068",
|
||||
"titleBar.activeBackground": "#03d068",
|
||||
"titleBar.activeForeground": "#15202b",
|
||||
"titleBar.border": "#03d068",
|
||||
"titleBar.inactiveBackground": "#03d06899",
|
||||
"titleBar.inactiveForeground": "#15202b99"
|
||||
},
|
||||
"peacock.color": "#0afc81"
|
||||
}
|
||||
Reference in New Issue
Block a user