Skip to content

Commit ccbb5e7

Browse files
Merge branch 'uc4w6c-sample/getUrl'
2 parents 24fddb7 + f2ace2f commit ccbb5e7

26 files changed

Lines changed: 34 additions & 0 deletions

File tree

sample/01-cats-app/src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { AppModule } from './app.module';
55
async function bootstrap() {
66
const app = await NestFactory.create(AppModule);
77
app.useGlobalPipes(new ValidationPipe());
8+
89
await app.listen(3000);
10+
console.log(`Application is running on: ${await app.getUrl()}`);
911
}
1012
bootstrap();

sample/02-gateways/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { AppModule } from './app.module';
44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
66
await app.listen(3000);
7+
console.log(`Application is running on: ${await app.getUrl()}`);
78
}
89
bootstrap();

sample/03-microservices/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ async function bootstrap() {
2222

2323
await app.startAllMicroservicesAsync();
2424
await app.listen(3001);
25+
console.log(`Application is running on: ${await app.getUrl()}`);
2526
}
2627
bootstrap();

sample/04-grpc/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ async function bootstrap() {
2222

2323
await app.startAllMicroservicesAsync();
2424
await app.listen(3001);
25+
console.log(`Application is running on: ${await app.getUrl()}`);
2526
}
2627
bootstrap();

sample/05-sql-typeorm/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { AppModule } from './app.module';
44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
66
await app.listen(3000);
7+
console.log(`Application is running on: ${await app.getUrl()}`);
78
}
89
bootstrap();

sample/06-mongoose/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { AppModule } from './app.module';
44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
66
await app.listen(3000);
7+
console.log(`Application is running on: ${await app.getUrl()}`);
78
}
89
bootstrap();

sample/07-sequelize/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { AppModule } from './app.module';
44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
66
await app.listen(3000);
7+
console.log(`Application is running on: ${await app.getUrl()}`);
78
}
89
bootstrap();

sample/08-webpack/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const module: any;
66
async function bootstrap() {
77
const app = await NestFactory.create(AppModule);
88
await app.listen(3000);
9+
console.log(`Application is running on: ${await app.getUrl()}`);
910

1011
if (module.hot) {
1112
module.hot.accept();

sample/09-babel-example/src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { AppModule } from './app.module';
44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
66
await app.listen(3000);
7+
console.log(`Application is running on: ${await app.getUrl()}`);
78
}
89
bootstrap();

sample/10-fastify/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ async function bootstrap() {
1313
);
1414
app.useGlobalPipes(new ValidationPipe());
1515
await app.listen(3000);
16+
console.log(`Application is running on: ${await app.getUrl()}`);
1617
}
1718
bootstrap();

0 commit comments

Comments
 (0)