|
|
@ -2,6 +2,7 @@ import { Logger, ValidationPipe } from '@nestjs/common'; |
|
|
|
import { NestFactory } from '@nestjs/core'; |
|
|
|
|
|
|
|
import { AppModule } from './app/app.module'; |
|
|
|
import { environment } from './environments/environment'; |
|
|
|
|
|
|
|
async function bootstrap() { |
|
|
|
const app = await NestFactory.create(AppModule); |
|
|
@ -18,8 +19,23 @@ async function bootstrap() { |
|
|
|
|
|
|
|
const port = process.env.PORT || 3333; |
|
|
|
await app.listen(port, () => { |
|
|
|
Logger.log(`Listening at http://localhost:${port}`); |
|
|
|
logLogo(); |
|
|
|
Logger.log(`Listening at http://localhost:${port}`, '', false); |
|
|
|
Logger.log('', '', false); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function logLogo() { |
|
|
|
Logger.log(' ________ __ ____ ___', '', false); |
|
|
|
Logger.log(' / ____/ /_ ____ _____/ /_/ __/___ / (_)___', '', false); |
|
|
|
Logger.log(' / / __/ __ \\/ __ \\/ ___/ __/ /_/ __ \\/ / / __ \\', '', false); |
|
|
|
Logger.log('/ /_/ / / / / /_/ (__ ) /_/ __/ /_/ / / / /_/ /', '', false); |
|
|
|
Logger.log( |
|
|
|
`\\____/_/ /_/\\____/____/\\__/_/ \\____/_/_/\\____/ ${environment.version}`, |
|
|
|
'', |
|
|
|
false |
|
|
|
); |
|
|
|
Logger.log('', '', false); |
|
|
|
} |
|
|
|
|
|
|
|
bootstrap(); |
|
|
|