Skip to content

Commit 410ba49

Browse files
committed
Created basic NestJS application to demonstrate and provide information about logger-decorator issue #124
pustovitDmytro/logger-decorator#124
0 parents  commit 410ba49

19 files changed

+9139
-0
lines changed

.eslintrc.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
tsconfigRootDir: __dirname,
6+
sourceType: 'module',
7+
},
8+
plugins: ['@typescript-eslint/eslint-plugin'],
9+
extends: [
10+
'plugin:@typescript-eslint/recommended',
11+
'plugin:prettier/recommended',
12+
],
13+
root: true,
14+
env: {
15+
node: true,
16+
jest: true,
17+
},
18+
ignorePatterns: ['.eslintrc.js'],
19+
rules: {
20+
'@typescript-eslint/interface-name-prefix': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/explicit-module-boundary-types': 'off',
23+
'@typescript-eslint/no-explicit-any': 'off',
24+
},
25+
};

.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
pnpm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# OS
15+
.DS_Store
16+
17+
# Tests
18+
/coverage
19+
/.nyc_output
20+
21+
# IDEs and editors
22+
/.idea
23+
.project
24+
.classpath
25+
.c9/
26+
*.launch
27+
.settings/
28+
*.sublime-workspace
29+
30+
# IDE - VSCode
31+
.vscode/*
32+
!.vscode/settings.json
33+
!.vscode/tasks.json
34+
!.vscode/launch.json
35+
!.vscode/extensions.json

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
A basic NestJS application to demonstrate
2+
[logger-decorator Issue #124](https://github.com/pustovitDmytro/logger-decorator/issues/124)
3+
4+
## Installation
5+
6+
```bash
7+
$ npm install
8+
```
9+
10+
## Running the app
11+
12+
```bash
13+
# development
14+
$ npm run start
15+
16+
# watch mode
17+
$ npm run start:dev
18+
``````
19+
20+
Within the lines the console should print out on startup are:
21+
```
22+
[RoutesResolver] UnmappedController {/unmapped}:
23+
// Nothing - As the methods inside fail to map
24+
[RoutesResolver] MappedController {/mapped}:
25+
[RouterExplorer] Mapped {/mapped, GET} route
26+
[RouterExplorer] Mapped {/mapped/works, GET} route
27+
// route /mapped/fails does not get mapped
28+
```
29+
30+
Further information can be found within the code
31+
32+
[UnmappedController](./src/unmapped/unmapped.controller.ts)
33+
34+
[MappedController](./src/mapped/mapped.controller.ts)

nest-cli.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/nest-cli",
3+
"collection": "@nestjs/schematics",
4+
"sourceRoot": "src",
5+
"compilerOptions": {
6+
"deleteOutDir": true
7+
}
8+
}

0 commit comments

Comments
 (0)