Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
359 changes: 356 additions & 3 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@
"@nestjs/core": "^11.0.1",
"@nestjs/mapped-types": "^2.1.0",
"@nestjs/platform-express": "^11.0.1",
"@nestjs/platform-socket.io": "^11.1.6",
"@nestjs/swagger": "^11.2.0",
"@nestjs/typeorm": "^11.0.0",
"@nestjs/websockets": "^11.1.6",
"jsonwebtoken": "^9.0.2",
"mysql2": "^3.14.4",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"socket.io": "^4.8.1",
"swagger-ui-express": "^5.0.1",
"typeorm": "^0.3.26",
"ws": "^8.18.3",
"y-protocols": "^1.0.6",
"y-websocket": "^3.0.0",
"yjs": "^13.6.27"
},
Expand Down
2 changes: 2 additions & 0 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Cardset as CardSet } from './cardset/entities/cardset.entity';
import { CardsetManager as CardSetManager } from './cardset-manager/entities/cardset-manager.entity';
import { CardModule } from './card/card.module';
import { Card as Card } from './card/entities/card.entity';
import { WebSocketModule } from './websocket/websocket.module';
@Module({
imports: [
AuthModule,
Expand All @@ -25,6 +26,7 @@ import { Card as Card } from './card/entities/card.entity';
CardsetModule,
CardsetManagerModule,
CardModule,
WebSocketModule,
],
controllers: [],
providers: [],
Expand Down
3 changes: 1 addition & 2 deletions src/card/card.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class CardService {
}
export class CardService {}
2 changes: 1 addition & 1 deletion src/card/entities/card.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export class Card {

@Column({ type: 'text', nullable: false })
content!: string;
}
}
4 changes: 1 addition & 3 deletions src/cardset-manager/cardset-manager.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class CardsetManagerService {

}
export class CardsetManagerService {}
4 changes: 1 addition & 3 deletions src/cardset/cardset.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class CardsetService {

}
export class CardsetService {}
11 changes: 9 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { IoAdapter } from '@nestjs/platform-socket.io';
import { NestExpressApplication } from '@nestjs/platform-express';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);

// 정적 파일 서빙 설정 제거 (YJS 제거로 불필요)

// Socket.IO 어댑터 설정
app.useWebSocketAdapter(new IoAdapter(app));

const config = new DocumentBuilder()
.setTitle('Flip Note API')
Expand All @@ -27,4 +34,4 @@ async function bootstrap() {

await app.listen(process.env.PORT ?? 3000);
}
bootstrap();
void bootstrap();
Loading