mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
14 lines
371 B
TypeScript
14 lines
371 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { ExpressAdapter } from '@nestjs/platform-express';
|
|
|
|
import { AppModule } from './nest/app.module';
|
|
|
|
NestFactory.create(AppModule, new ExpressAdapter(), {
|
|
logger: false,
|
|
bodyParser: false,
|
|
})
|
|
.then(app => app.listen(3000))
|
|
.catch(error => {
|
|
console.error('Error starting Nest.js application:', error);
|
|
});
|