Skip to main content

🚀 InventoryAlert Documentation (v1)

Welcome to the InventoryAlert System Wiki — the single source of truth for architecture, operational runbooks, and API contracts.

InventoryAlert is a real-time stock portfolio and alerting ecosystem built on .NET 10 and Next.js 15 (App Router). It tracks global stock prices via Finnhub, evaluates user-defined Alert Rules, and delivers in-app notifications when thresholds are crossed.

v2 Note: The system has been fully refactored from an inventory-management domain to a finance-domain vocabulary. ProductStockListing, StockTransactionTrade, Telegram → In-App Notifications.


🧭 Navigating the Wiki

🌟 Project & Architecture

Understand the "why" and the overall shape of the system.

💾 Core Logic & Flows

Deep dive into the data rules and execution sequences.

  • Data Model — PostgreSQL ER diagram, DynamoDB tables, AlertCondition enum.
  • Caching Strategy — Redis key namespaces, TTLs, and rate limit guard.
  • User Authentication — JWT lifecycle, refresh rotation, claim structure.
  • Price Sync Flow — End-to-end price fetch → PriceHistory → alert evaluation → notification.
  • Alert Dispatch — AlertRule evaluation, Redis cooldown, SQS relay.
  • Business Logic — Trade ledger semantics, symbol discovery, cascade delete rules, validation.

🔌 APIs & Jobs

How the system talks to the outside world and background workloads.

🛠️ Developer Guide

Everything you need to run, build, and maintain the platform.

🖥️ Front-End

  • UI Architecture — App Router layout, page → API map, component library, state management.
  • Feature Breakdown — All user-facing pages, notification hub flow, symbol discovery UX.

💡 Tip: Use the sidebar search to instantly jump to specific API paths, entity names, or architecture diagrams.