How dhruvasingh12/aushadh-info works
Project type and purpose
• This is a full-stack Next.js 13 application (“app” router) named “AushadhInfo” that provides medicine and manufacturer information pages, search and filtering capabilities, and an on-the-fly translation API endpoint.
• Key features:
• Dynamic medicine and manufacturer pages under app/medicine/[id] and app/manufacturer/[manufacturerName]
• Search and browse lists of medicines and categories
• A custom Next.js API route for text translation (app/api/translate/route.ts)
• Supabase integration for data and authentication (providers/SupabaseProvider.tsx)
• Shared UI components and utility libraries for data fetching, caching, and business logic in lib/
File structure
• Top-level directories:
• app/ – Next.js routes (server and client components), layouts, global CSS
◦ app/(site)/ – marketing site pages and shared UI sections
◦ app/medicine/ & app/manufacturer/ – dynamic routes and page-specific components
◦ app/api/translate/ – REST API route for translations
• components/ – globally shared React UI components (buttons, dialogs, tooltips, pagination, etc.)
• components/ui/ – low-level design system primitives (Input, Table, Toaster, etc.)
• lib/ – data-access and business logic (fetching from Supabase, caching, grouping stats, translation helper, etc.)
• providers/ – React context providers (SupabaseProvider)
• hooks/ – custom React hooks (debounce)
• public/ – static assets
• Config files: next.config.ts, tailwind.config.ts, ESLint, TypeScript, PostCSS.
README
• Minimal (“work under progress”), but project name (“AushadhInfo”) implies an information portal for medicines.