Skip to content

Commit 9ab5968

Browse files
committed
feat: 댓글 생성 기능
2 parents 4945373 + a8a82d9 commit 9ab5968

19 files changed

+27
-65
lines changed

.github/workflows/dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: cp appspec/appspec-dev.yml appspec.yml
5050

5151
- name: copy scripts
52-
run: cp dev-scripts/after-deploy.sh scripts/after-deploy.sh
52+
run: mkdir -p scripts && cp dev-scripts/after-deploy.sh scripts/after-deploy.sh
5353

5454
- name: build server files
5555
working-directory: ./

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -398,3 +398,4 @@ Temporary Items
398398
dist
399399
.webpack
400400
.serverless/**/*.zip
401+
yarn.lock

dev-scripts/after-deploy.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
REPOSITORY=/home/ubuntu/build
2+
REPOSITORY=/home/ubuntu/build-dev
33
APP_NAME=node_app_dev
44

55
cd $REPOSITORY
@@ -9,8 +9,8 @@ if sudo pm2 list | grep $APP_NAME > /dev/null
99
then
1010
echo "$APP_NAME is already running. Restarting..."
1111
sudo pm2 delete $APP_NAME
12-
sudo pm2 start dist/app.js --name $APP_NAME
12+
sudo pm2 start dist/main.js --name $APP_NAME
1313
else
1414
echo "Starting $APP_NAME"
15-
sudo pm2 start dist/app.js --name $APP_NAME
15+
sudo pm2 start dist/main.js --name $APP_NAME
1616
fi

prod-scripts/after-deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ if sudo pm2 list | grep $APP_NAME > /dev/null
99
then
1010
echo "$APP_NAME is already running. Restarting..."
1111
sudo pm2 delete $APP_NAME
12-
sudo pm2 start dist/app.js --name $APP_NAME
12+
sudo pm2 start dist/main.js --name $APP_NAME
1313
else
1414
echo "Starting $APP_NAME"
15-
sudo pm2 start dist/app.js --name $APP_NAME
15+
sudo pm2 start dist/main.js --name $APP_NAME
1616
fi

src/chat-room/chat-room.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Controller, Get, Patch } from '@nestjs/common';
22
import { ChatRoomService } from './chat-room.service';
33
import { GetChatRoomsSwagger, LeaveChatRoomSwagger } from './chat-room.swagger';
4-
import { ApiTags } from '@nestjs/swagger';
4+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6+
@ApiBearerAuth()
67
@Controller('chat-room')
78
@ApiTags('[서비스] 채팅방')
89
export class ChatRoomController {

src/matching/matching.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import {
77
GetMatchingSwagger,
88
PatchMatchingRequestStatusSwagger,
99
} from './matching.swagger';
10-
import { ApiTags } from '@nestjs/swagger';
10+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
1111

12+
@ApiBearerAuth()
1213
@Controller('matching')
1314
@ApiTags('[서비스] 매칭')
1415
export class MatchingController {

src/post-clothing/post-clothing.controller.spec.ts

-18
This file was deleted.

src/post-clothing/post-clothing.controller.ts

-4
This file was deleted.

src/post-clothing/post-clothing.module.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Module } from '@nestjs/common';
2-
import { PostClothingController } from './post-clothing.controller';
32
import { PostClothingService } from './post-clothing.service';
43
import { PostClothing } from 'src/common/entities/post-clothing.entity';
54
import { TypeOrmModule } from '@nestjs/typeorm';
65
import { ClothingModule } from 'src/clothing/clothing.module';
76

87
@Module({
98
imports: [TypeOrmModule.forFeature([PostClothing]), ClothingModule],
10-
controllers: [PostClothingController],
9+
controllers: [],
1110
providers: [PostClothingService],
1211
exports: [PostClothingService],
1312
})

src/post-comment/post-comment.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ import {
1414
DeletePostCommentSwagger,
1515
GetPostCommentsSwagger,
1616
} from './post-comment.swagger';
17-
import { ApiTags } from '@nestjs/swagger';
1817
import { CreateCommentDto } from './dtos/create-comment.dto';
1918
import { Request } from 'express';
2019
import { BaseResponse } from 'src/common/response/dto';
2120
import { PostService } from 'src/post/post.service';
2221
import { AuthGuard } from 'src/auth/guards/jwt.auth.guard';
22+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
2323

24+
@ApiBearerAuth()
2425
@Controller('post-comment')
2526
@UseGuards(AuthGuard)
2627
@ApiTags('[서비스] 게시글 댓글')

src/post-image/post-image.controller.spec.ts

-18
This file was deleted.

src/post-image/post-image.controller.ts

-6
This file was deleted.

src/post-image/post-image.module.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { Module } from '@nestjs/common';
2-
import { PostImageController } from './post-image.controller';
32
import { PostImageService } from './post-image.service';
43
import { TypeOrmModule } from '@nestjs/typeorm';
54
import { PostImage } from 'src/common/entities/post-image.entity';
65

76
@Module({
87
imports: [TypeOrmModule.forFeature([PostImage])],
9-
controllers: [PostImageController],
8+
controllers: [],
109
providers: [PostImageService],
1110
exports: [PostImageService],
1211
})

src/post-like/post-like.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import {
44
CreatePostLikeSwagger,
55
GetPostLikesSwagger,
66
} from './post-like.swagger';
7-
import { ApiTags } from '@nestjs/swagger';
7+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
88

9+
@ApiBearerAuth()
910
@Controller('post-like')
1011
@ApiTags('[서비스] 게시글 좋아요')
1112
export class PostLikeController {

src/post-report/post-report.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Controller, Post } from '@nestjs/common';
22
import { PostReportService } from './post-report.service';
33
import { CreatePostReportSwagger } from './post-report.swagger';
4-
import { ApiTags } from '@nestjs/swagger';
4+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6+
@ApiBearerAuth()
67
@Controller('post-report')
78
@ApiTags('[서비스] 게시글 신고')
89
export class PostReportController {

src/post/post.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
PatchIsRepresentativeSwagger,
2424
PatchPostSwagger,
2525
} from './post.swagger';
26-
import { ApiParam, ApiTags } from '@nestjs/swagger';
26+
import { ApiBearerAuth, ApiParam, ApiTags } from '@nestjs/swagger';
2727
import { CreatePostDto } from './dtos/create-post.dto';
2828
import { BaseResponse } from 'src/common/response/dto';
2929
import { AuthGuard } from 'src/auth/guards/jwt.auth.guard';
@@ -32,6 +32,7 @@ import { GetPostResponse } from './dtos/get-post.dto';
3232
import { PatchPostDto } from './dtos/patch-Post.dto';
3333

3434
@Controller('post')
35+
@ApiBearerAuth()
3536
@UseGuards(AuthGuard)
3637
@ApiTags('[서비스] 게시글')
3738
export class PostController {

src/user-block/user-block.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Controller, Post } from '@nestjs/common';
22
import { UserBlockService } from './user-block.service';
33
import { CreateBlockUserSwagger } from './user-block.swagget';
4-
import { ApiTags } from '@nestjs/swagger';
4+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6+
@ApiBearerAuth()
67
@Controller('user-block')
78
@ApiTags('[서비스] 유저 차단')
89
export class UserBlockController {

src/user-report/user-report.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Controller, Post } from '@nestjs/common';
22
import { UserReportService } from './user-report.service';
33
import { PostUserReportSwagger } from './user-report.swagger';
4-
import { ApiTags } from '@nestjs/swagger';
4+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6+
@ApiBearerAuth()
67
@Controller('user-report')
78
@ApiTags('[서비스] 유저 신고')
89
export class UserReportController {

src/user/user.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { Controller, Get, Patch } from '@nestjs/common';
22
import { UserService } from './user.service';
3-
import { ApiTags } from '@nestjs/swagger';
3+
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
44
import {
55
GetUserSwagger,
66
PatchUserSwagger,
77
PatchUserTermsSwagger,
88
SignOutSwagger,
99
} from './user.swagger';
1010

11+
@ApiBearerAuth()
1112
@Controller('user')
1213
@ApiTags('[서비스] 유저')
1314
export class UserController {

0 commit comments

Comments
 (0)