wip litle front end for chat

This commit is contained in:
lenovo
2022-11-22 17:46:55 +01:00
parent ada109416a
commit 6a119c0789
72 changed files with 17548 additions and 997 deletions

View File

@@ -0,0 +1,8 @@
import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
@Get()
getHello() {}
}

View File

@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
@Module({
imports: [],
controllers: [AppController],
providers: [],
})
export class AppModule {}

View 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();