003
Archive 003Tool

SMM-Reseller

Custom SMM panel development: marketing site, order cabinet, RBAC admin, prepaid balance, and provider panel integrations. Social media growth platform (Instagram, Telegram, YouTube, TikTok) built with Next.js and FastAPI

websites

SMM-Reseller
01 /About

Custom SMM panel development: marketing site, order cabinet, RBAC admin, prepaid balance, and provider panel integrations. Social media growth platform (Instagram, Telegram, YouTube, TikTok) built with Next.js and FastAPI.

Delivered on commission, tailored to the client's requirements.

02 /🎯 Overview
  1. 01Branded SMM reseller: it does not run promotion itself, it mediates between clients and provider panels
  2. 02Three surfaces: marketing landing, user cabinet, and RBAC admin panel
  3. 03Prepaid balance: users top up → orders are charged from balance
  4. 04Two catalog layers: raw provider services and Store Services with markup, rename and publish
  5. 05Clients never see the provider, service_id or purchase cost
03 /🏗️ Architecture (monorepo)
  1. 01apps/web — Next.js 16 App Router: landing, cabinet, admin in one frontend
  2. 02services/api — FastAPI backend: auth, catalog, orders, payments, tickets, RBAC
  3. 03packages/shared-types — shared TypeScript types
  4. 04Backend layers: Router → Service → Model/DB; Provider Client is HTTP-only to external panels
  5. 05Workers (ARQ/Redis): order status polling, catalog sync, ticket/log cleanup
  6. 06Docker Compose: PostgreSQL + Redis for local development
04 /🖥️ Landing & public pages
  1. 01Hero, features, services, FAQ, CTA; GSAP animations
  2. 02Legal pages: Terms, Privacy, Refund
  3. 03Public API page for integrators
  4. 04SEO meta/OG; Manrope; light/dark theme
  5. 05i18n ru/en via next-intl with auto locale detection
05 /👤 User cabinet
  1. 01Dashboard: balance, activity, quick actions
  2. 02Catalog and new order: platforms/categories, tariffs, price calc, order types
  3. 03Order history with status and progress; cancel when provider supports it
  4. 04Balance deposit and transaction history
  5. 05Profile: username, email, password, preferences, device sessions
  6. 062FA (TOTP), user API keys (create / rotate / revoke)
  7. 07Support tickets with attachments; platform news feed
06 /🛠️ Admin panel
  1. 01Dashboard and statistics: orders, revenue, provider balances
  2. 02Providers: enable, API keys, balance check, catalog sync
  3. 03Store: categories, publish services, markups, descriptions, icons, order flags
  4. 04Orders: view, status sync, cancel, refund
  5. 05Users: profile, balance, per-user prices and global discount, block
  6. 06Finance, platform settings (markup, min deposit, maintenance, SMTP, notifications)
  7. 07Tickets with internal notes and assignment; news; activity/error logs
  8. 08RBAC: granular permissions, roles, role assignment
07 /🔌 Providers & orders
  1. 01Universal SMM Panel API v2: services, add, status, balance, cancel
  2. 02Client price = provider rate × (1 + markup%) + optional fixed fee
  3. 03Background poll of pending/in_progress orders; auto-sync of active catalogs
  4. 04Order progress fields and refunds per platform policy
08 /🔐 Auth & security
  1. 01Email/password registration and login, email verify, password reset
  2. 02JWT access + refresh, HttpOnly cookies, device sessions
  3. 032FA (pyotp), security email notifications
  4. 04Encrypted provider API keys, bcrypt passwords
  5. 05Security headers, rate limiting, user-facing error mapping
  6. 06Orders authenticated via session or user API key
09 /💰 Payments & finance
  1. 01Prepaid model: deposit → charge on order create
  2. 02Transactions: deposits, charges, refunds, admin adjustments
  3. 03Per-user service prices and global user discount
  4. 04Admin finance section and CSV export for users/logs
10 /🧩 Technical
  1. 01npm workspaces monorepo + Python backend
  2. 0230+ Alembic migrations (auth, catalog, orders, payments, tickets, RBAC, sessions, api keys)
  3. 03Async SQLAlchemy + asyncpg, Pydantic v2 schemas
  4. 04Localized emails (verify, reset, 2FA, security alerts)
  5. 05Platform notifications and in-app news
  6. 06Playwright e2e/smoke on frontend; pytest on API
  7. 07Responsive cabinet and admin UI