Ce commit applique un formatage uniforme au code en utilisant des guillemets doubles. Cela améliore la lisibilité et maintient une style cohérente à travers tous les fichiers. De plus, une configuration Biome a été ajoutée pour automatiser ce processus à l'avenir.
23 lines
552 B
TypeScript
23 lines
552 B
TypeScript
/**
|
|
* This is not a production server yet!
|
|
* This is only a minimal backend to get started.
|
|
*/
|
|
|
|
import { Logger } from "@nestjs/common";
|
|
import { NestFactory } from "@nestjs/core";
|
|
|
|
import { AppModule } from "./app/app.module";
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
const globalPrefix = "api";
|
|
app.setGlobalPrefix(globalPrefix);
|
|
const port = process.env.PORT || 3000;
|
|
await app.listen(port);
|
|
Logger.log(
|
|
`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`,
|
|
);
|
|
}
|
|
|
|
bootstrap();
|