mirror of
https://github.com/tedkulp/vidgrab
synced 2026-04-20 21:44:25 -04:00
initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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 || 3333;
|
||||
await app.listen(port, () => {
|
||||
Logger.log('Listening at http://localhost:' + port + '/' + globalPrefix);
|
||||
});
|
||||
}
|
||||
|
||||
bootstrap();
|
||||
Reference in New Issue
Block a user