How mostafa-aljazar/graduation_project works
Project type and purpose
• Full-stack Next.js (App Router) web application written in TypeScript
• Domain: humanitarian aid management with four actor types (delegates, displaceds, managers, security) plus public landing and auth flows
• Client-side routing, SSR/SSG where appropriate, file uploads, email notifications
File structure
• src/app – Next.js pages organized by route folders (landing, auth, actor/(…))
• src/components – UI components split by domain and reusables (common, landing, actors/….)
• src/actions – Domain-driven “useCase” functions that wrap API calls (e.g. getDelegateProfile)
• src/services – Low-level HTTP client abstraction managing base URLs, headers
• src/hooks – Custom React hooks (e.g. useGetDelegatesNames) that compose actions + React Query
• src/providers – Context/providers (React Query, Mantine UI, auth adapter)
• src/utils – Generic utilities (auth session, upload thing, formatting)
• app/api – Next.js API route(s) (UploadThing file upload handler)
• config files – next.config.ts, tailwind.config.ts, tsconfig.json
README for additional insights
• Bootstrapped with create-next-app
• Uses next/font, deploys to Vercel
• No built-in backend besides the UploadThing route; primary data lives in external REST APIs