AK
Size: a a a
AK
IG
import { NestFactory } from '@nestjs/core';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { AppModule } from './app.module';
import { AppConfig } from "./app.config";
async function bootstrap() {
const app = await NestFactory.create(AppModule, { cors: true });
const options = new DocumentBuilder()
.setTitle('Relayer')
.setDescription('Relayer accepts requests for publishing transactions')
.setVersion('1.0')
.addTag('RelayerAPI')
.build();
// app.use(json({ limit: '50mb' })); // json limit
const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('docs', app, document);
await app.listen(AppConfig.port);
}
bootstrap();IG
IG
IG
AK
IG
AK
AV
htop 8 процессовAK
AV
ExpressFactory.create()ЮК
AB
ЮК
AM
ExpressFactory.create()AV
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port, () => console.log(`Example app listening on port ${port}!`))AM
AM
AM
AM