-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2.x Recovered * Added 2.1.1 changes
- Loading branch information
Jacob Dharandas Méndez
authored
May 21, 2021
1 parent
0333cb1
commit f687554
Showing
101 changed files
with
24,139 additions
and
12,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { NestFactory } from '@nestjs/core'; | ||
import { AllExceptionFilter } from '../all-exception.filter'; | ||
import { Logger } from 'nestjs-pino-stackdriver'; | ||
import { EventStoreHeroesModule } from '../heroes/event-store-heroes.module'; | ||
|
||
declare const module: any; | ||
|
||
async function bootstrap() { | ||
const app = await NestFactory.create(EventStoreHeroesModule.register(), { | ||
logger: new Logger(), | ||
}); | ||
|
||
if (module.hot) { | ||
module.hot.accept(); | ||
module.hot.dispose(() => app.close()); | ||
} | ||
app.useGlobalFilters(new AllExceptionFilter()); | ||
await app.listen(3000, () => | ||
console.log('Application is listening on port 3000.'), | ||
); | ||
} | ||
|
||
bootstrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { NestFactory } from '@nestjs/core'; | ||
import { AllExceptionFilter } from '../all-exception.filter'; | ||
import { Logger } from 'nestjs-pino-stackdriver'; | ||
import { EventStoreHeroesModule } from '../heroes/event-store-heroes.module'; | ||
|
||
declare const module: any; | ||
|
||
async function bootstrap() { | ||
const app = await NestFactory.create( | ||
EventStoreHeroesModule.registerProjection(), | ||
{ | ||
logger: new Logger(), | ||
}, | ||
); | ||
|
||
if (module.hot) { | ||
module.hot.accept(); | ||
module.hot.dispose(() => app.close()); | ||
} | ||
app.useGlobalFilters(new AllExceptionFilter()); | ||
await app.listen(3000, () => | ||
console.log('Application is listening on port 3000.'), | ||
); | ||
} | ||
|
||
bootstrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { NestFactory } from '@nestjs/core'; | ||
import { AllExceptionFilter } from '../all-exception.filter'; | ||
import { Logger } from 'nestjs-pino-stackdriver'; | ||
import { EventStoreHeroesModule } from '../heroes/event-store-heroes.module'; | ||
|
||
declare const module: any; | ||
|
||
async function bootstrap() { | ||
const app = await NestFactory.create( | ||
EventStoreHeroesModule.registerSubscriptions(), | ||
{ | ||
logger: new Logger(), | ||
}, | ||
); | ||
|
||
if (module.hot) { | ||
module.hot.accept(); | ||
module.hot.dispose(() => app.close()); | ||
} | ||
app.useGlobalFilters(new AllExceptionFilter()); | ||
await app.listen(3000, () => | ||
console.log('Application is listening on port 3000.'), | ||
); | ||
} | ||
|
||
bootstrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { NestFactory } from '@nestjs/core'; | ||
import { AllExceptionFilter } from '../all-exception.filter'; | ||
import { Logger } from 'nestjs-pino-stackdriver'; | ||
import { EventStoreHeroesModule } from '../heroes/event-store-heroes.module'; | ||
|
||
declare const module: any; | ||
|
||
async function bootstrap() { | ||
const app = await NestFactory.create( | ||
EventStoreHeroesModule.registerWriteBus(), | ||
{ | ||
logger: new Logger(), | ||
}, | ||
); | ||
|
||
if (module.hot) { | ||
module.hot.accept(); | ||
module.hot.dispose(() => app.close()); | ||
} | ||
app.useGlobalFilters(new AllExceptionFilter()); | ||
await app.listen(3000, () => | ||
console.log('Application is listening on port 3000.'), | ||
); | ||
} | ||
|
||
bootstrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.