# rebates-ui.com — repo context

> Curated overview for code_search. Source: `bitbucket_server:AD/rebates-ui.com` (Bitbucket, project AD). Next.js 16 (App Router) / React 19 / TypeScript. Default branch `master`.

## Purpose
The **Rebates.com** consumer web app — the cashback / rebates / deals front end: store & deal browsing, cashback tracking, coins & perks, withdrawals, subscriptions, referrals, and user account. Server-rendered Next.js that calls the **api_new.rebates.com** backend (its REST API). Payments via **Stripe**; sign-in via Google OAuth + the backend auth API.

## Structure (Next.js App Router)
- `src/app/` — routes / pages (App Router).
- `src/services/` — API clients (axios) to the rebates backend; `src/store/` — Redux Toolkit + redux-persist; `src/hooks/`, `src/context/`, `src/lib/`, `src/utils/`, `src/components/`, `src/styles/`.
- `src/proxy.ts` — request proxy helper; `middleware.ts` (repo root) — edge middleware.

## Tech
Next.js 16 · React 19 · TypeScript · Redux Toolkit + redux-persist · TanStack React Query + SWR · react-hook-form + yup + zod · **Stripe** (`@stripe/react-stripe-js`) · Google OAuth + reCAPTCHA · axios · Bootstrap. Runs under Next (PM2 `ecosystem.config.js`).

## Search notes
- Domain logic is under `src/` (`services/`, `store/`, `components/`, `hooks/`). The backend business logic + data live in **`api_new.rebates.com`**, not here.
- `node_modules` / build output are gitignored, so not indexed.
