feat: initial full-stack nyaa-crawler implementation

- Node.js + TypeScript + Express backend using built-in node:sqlite
- React + Vite frontend with dark-themed UI
- Nyaa.si RSS polling via fast-xml-parser
- Watch list with show/episode CRUD and status tracking
- Auto-download scheduler with node-cron (configurable interval)
- .torrent file downloader with batch-release filtering
- Settings page for poll interval and quality defaults
- Dockerfile and docker-compose for Unraid deployment
- SQLite DB with migrations (shows, episodes, settings tables)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jason
2026-03-17 14:00:09 -05:00
parent 8294e8d95f
commit ded0875e72
31 changed files with 5560 additions and 12 deletions

35
Dockerfile Normal file
View File

@@ -0,0 +1,35 @@
# ---- Build stage ----
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# ---- Production stage ----
FROM node:20-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY package*.json ./
RUN npm ci --omit=dev
# Copy compiled server
COPY --from=builder /app/dist ./dist
# Default data directories
RUN mkdir -p /data/torrents
ENV PORT=3000
ENV DATABASE_PATH=/data/db.sqlite
ENV TORRENT_OUTPUT_DIR=/data/torrents
ENV POLL_INTERVAL_SECONDS=900
EXPOSE 3000
CMD ["node", "dist/server/index.js"]