0

I'm trying to use Fastify with my project, but when I want to start the server, it isn't opening the specific port.

I'm creating the server like this:

import { NestFactory } from "@nestjs/core";
import { NestFastifyApplication, FastifyAdapter } from "@nestjs/platform-fastify";
import { AppModule } from "./app.module";

async function bootstrap() {
  const app = await NestFactory.create<NestFastifyApplication>(
    AppModule,
    new FastifyAdapter()
  );
  await app.listen(3000, '0.0.0.0');
}
bootstrap();

It says the application is successfully started, but when I check with netstat -ano, the address(0.0.0.0:3000) isn't there.The port that's supposed to open is 3000, the app's PID is 27324

The server logs: Log1 Log2 Log3 Log4

Danstadje
  • 23
  • 4

0 Answers0