- sequelize 모델: sunday_maple (week_start/variant/image_url 등)
- services/sundayMaple.js: 이벤트 API 조회 + HTML 스크래핑 + rustfs 업로드 + DB 저장 공용 함수
- services/sundayMapleCron.js: 금요일 09:00 KST에 10초 간격 폴링 (최대 5분)
- routes/sunday-maple.js: GET /api/sunday-maple/current
* 금/토/일만 available
* DB 없으면 lazy fetch 시도 (cron miss 대비)
- 제목 파싱으로 normal/special variant 판별
- rustfs 경로: maplestory/sunday/{week_start}.png
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
23 lines
493 B
JSON
23 lines
493 B
JSON
{
|
|
"name": "maplestory-backend",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"dev": "node --watch server.js"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.800.0",
|
|
"axios": "^1.9.0",
|
|
"cors": "^2.8.5",
|
|
"dayjs": "^1.11.20",
|
|
"express": "^5.1.0",
|
|
"mariadb": "^3.4.0",
|
|
"multer": "^2.0.0",
|
|
"mysql2": "^3.14.1",
|
|
"node-cron": "^4.2.1",
|
|
"sequelize": "^6.37.5",
|
|
"sharp": "^0.34.1"
|
|
}
|
|
}
|