postiz-app/apps/backend/src/main.ts
2024-01-28 16:20:26 +07:00

22 lines
556 B
TypeScript

/**
* This is not a production server yet!
* This is only a minimal backend to get started.
*/
import {Logger, ValidationPipe} from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ValidationPipe({
transform: true,
}));
const port = process.env.PORT || 3000;
await app.listen(port);
Logger.log(
`🚀 Application is running on: http://localhost:${port}`
);
}
bootstrap();