changed docker file nest to avoid rebuild everything each time, and small changes in chat gateway
This commit is contained in:
8
tests_hugo/chat_nest_2/src/app.controller.ts
Normal file
8
tests_hugo/chat_nest_2/src/app.controller.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
|
||||
@Get()
|
||||
getHello() {}
|
||||
}
|
||||
9
tests_hugo/chat_nest_2/src/app.module.ts
Normal file
9
tests_hugo/chat_nest_2/src/app.module.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { AppController } from './app.controller';
|
||||
|
||||
@Module({
|
||||
imports: [],
|
||||
controllers: [AppController],
|
||||
providers: [],
|
||||
})
|
||||
export class AppModule {}
|
||||
11
tests_hugo/chat_nest_2/src/main.ts
Normal file
11
tests_hugo/chat_nest_2/src/main.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
app.enableCors(options:{
|
||||
origin: ['http://localhost:3000']
|
||||
});
|
||||
await app.listen(8000);
|
||||
}
|
||||
bootstrap();
|
||||
Reference in New Issue
Block a user