Production-ready SaaS web app for automatic Wildberries feedback replies.
Each user registers, adds one or more Wildberries stores (with an encrypted
Feedbacks API key), and configures fixed reply templates for ratings 1–5.
A background worker scans all active stores every hour, fetches unanswered
feedbacks from the Wildberries Feedbacks API, and replies automatically
using only the fixed template that matches the feedback's rating
(productValuation). No AI, no dynamically generated text.
- backend/ — Go module: API server (
cmd/api), background worker (cmd/worker), migrations (cmd/migrate), shared internal packages. - worker/ — Dockerfile and docs for the worker (source in
backend/cmd/worker). - frontend/ — Next.js + TypeScript UI.
- deploy/ — nginx config and deployment assets.
- docs/ — documentation.
- MySQL (data), Redis (distributed lock + rate limiting), nginx (reverse proxy), Docker Compose on an Ubuntu VPS, GitHub Actions CI/CD.
- Wildberries API keys are encrypted at rest (AES-256-GCM,
APP_ENCRYPTION_KEY) and never returned to the frontend or logged. - A feedback is never answered twice (unique reply-job constraint).
- Replies use only the store's fixed template for the matching rating; missing/inactive template → skip, never invent text.
- Redis lock
lock:auto_reply_schedulerprevents duplicate scheduler runs. - Per-store rate limiting of Wildberries API calls.
- 429/5xx are retried with backoff; 400/401/402/403 are not. 401/403 marks the store token invalid and stops processing that store.
cp .env.example .env # fill in APP_ENCRYPTION_KEY and JWT_SECRET
make dev # starts mysql, redis, api, worker, frontend- Frontend: http://localhost:3000
- API: http://localhost:8080
See make help. Common ones: make test, make vet, make lint,
make build-backend, make build-frontend, make migrate-up.
docs/architecture.md— system designdocs/deployment.md— Ubuntu VPS deployment, HTTPS, backups (Sprint 11)docs/api.md— backend API reference (Sprint 13)