fix(backend): resolve unable to access recruit page #5
Merged
Conversation
Add MongoDB-backed ActivityType and ActivityItem models. Add backoffice CRUD and reorder APIs for activity CMS. Register MongoDB connection, Swagger docs, and standalone backoffice docker compose. Refs #3
|
Deployment failed with the following error: |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Menstear
pushed a commit
that referenced
this pull request
May 18, 2026
백엔드
- Comment 모델 추가 (content, author, status: pending/approved/rejected)
- AuditLog 모델 추가 (관리자 액션 감사 로그, actorUserId: Mixed 타입)
- AuditLogService 추가
- 공개 API: POST /comments (등록), GET /comments (승인된 목록 페이지네이션)
- 관리자 API: GET/PATCH(approve/reject)/DELETE /bo/admin/comments
- 보안: 허니팟 필드, rate limit (IP당 분당 5회), page 파라미터 DoS 상한(500)
- CORS: 개발/프로덕션 origin 배열로 수정, 프로덕션에 DELETE 메서드 추가
- trust proxy: app.enable → app.set('trust proxy', 1) 로 변경
- express-rate-limit, cors 패키지 추가
프론트엔드
- comment_api.jsx 추가 (fetchComments, approveComment, rejectComment, deleteComment)
- commentAdmin 기능을 recruitDB 내 오버레이 패널로 통합 (별도 라우트 제거)
- 코멘트 관리 패널: 상태 탭 필터, 테이블, 페이지네이션, ESC 키 닫기
- recruitDB.css에 다크 테마 패널 스타일 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Implementation
app.js의StartServer()부분을server.js로 분리했습니다.package.json의start,devscripts가src/app.js대신src/server.js를 실행하도록 변경했습니다.feature_name: "recruit"데이터가 없어 발생하던 오류를 수정했습니다.InsertDummyData.js에서Feature모델을 사용해 recruit feature 더미 데이터를 생성하도록 추가했습니다.bulkCreate,count등 Sequelize 메서드를insertMany,countDocuments,updateOne등 Mongoose 메서드로 변경했습니다.Semina.js에서 직접 관리하던semina_id필드를 제거했습니다.(대신 mongoDB에서 자동 생성되는 ObjectId를 사용)File.js의semina_id가 Number 대신mongoose.Schema.Types.ObjectId로Semina문서를 참조하도록 수정했습니다._id기반으로Semina와File데이터가 연결되도록 더미 데이터 삽입 방식을 변경했습니다.ActivityType.js,ActivityItem.js모델을 추가했습니다.Notes
recruitfeature 데이터는 backoffice의 모집 ON/OFF 상태 조회에 필요한 초기 데이터입니다.