Passed
Push — master ( b9ee6a...6e96df )
by Sergey
02:24
created

examples/server1/src/main.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A main.ts ➔ bootstrap 0 5 1
1
import { NestFactory } from '@nestjs/core';
2
import { AppModule } from './app.module';
3
4
async function bootstrap() {
5
    const app = await NestFactory.create(AppModule);
6
    await app.listen(3001, '0.0.0.0', () => {
7
        console.info(`Running server1: port: ${3001}`);
8
    });
9
}
10
11
bootstrap();
12