NestJS provides an Architecture allows developers and teams to create highly testable, scalable, loosely coupled, and easily maintainable applications.
Creates an instance of NestApplication.
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
// SECURITY
setupSecurity(app);
// OPEN API
if (process.env.NODE_ENV !== 'production') {
setupSwagger(app);
}
await app.listen(3000);
}
bootstrap();
Creates a Postgres SQL database (Docker)
Creates a Database model (TypeORM)
Inject TypeORM Repositories