How chiraggulati098/aura-email-frontend works
Project type and purpose
• This is a single‑page, full‑stack email client front‑end built in React + TypeScript.
• It provides inbox, sent mail, spam filtering, AI‑powered summarization and reply, and composes/deletes/marks emails via a REST API at http://127.0.0.1:5000.
File structure
• Top‑level & tooling:
• package.json, vite.config.ts, tsconfig*.json, tailwind.config.ts – front‑end build & lint config
• public/ – static assets (robots.txt, index.html)
• Source tree (src/):
• main.tsx – application bootstrap (Vite + ReactDOM.render)
• App.tsx – root component, routing & context providers
• pages/ – route views (Index.tsx, NotFound.tsx)
• components/ – UI building blocks: domain‑specific (EmailList, EmailDetail, ComposeEmail, EmailSidebar) and a large ui/ library of generic primitives
• contexts/ – UserEmailContext for global email state
• hooks/ – use-mobile, use-toast, plus data‑fetching hooks
• lib/utils.ts – helper functions (e.g., convertUrlsToLinks, filter mapping)
README for additional architectural insights
• Uses React Context + TanStack Query for state & data fetching.
• Styling with Tailwind CSS + PostCSS.
• Client–server API interactions for all email operations.
• A single REST API backend hosting authentication, email CRUD, AI features.