A modern telemedicine platform for weight management medications, built with Next.js 16 and MongoDB.
Medinexa is a comprehensive healthcare e-commerce platform that enables patients to access weight management medications through a streamlined online consultation process. The platform features patient intake forms, medication information, order management, and secure payment processing.
- Medical Intake Forms - Comprehensive health questionnaires with BMI calculation
- Medication Information - Detailed pages for Semaglutide, Tirzepatide, and Orlistat
- Eligibility Assessment - Interactive forms to determine treatment suitability
- Secure Checkout - Payment processing and order placement
- Order Tracking - View order status and history
- User Authentication - Secure login and registration system
- Order Management - View and manage patient orders
- Dashboard Analytics - Track orders, revenue, and patient data
- Admin Authentication - Role-based access control
- Responsive Design - Mobile-first UI with Tailwind CSS
- MongoDB Integration - Secure data storage with Mongoose ODM
- JWT Authentication - Token-based user sessions
- Form Validation - Client and server-side validation
- Modern UI Components - Reusable components with Lucide icons
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Database: MongoDB with Mongoose
- Styling: Tailwind CSS 4
- Authentication: JWT + bcryptjs
- Icons: Lucide React
- Charts: Chart.js with react-chartjs-2
- Node.js 20+
- MongoDB database
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd medinexa- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env.local- Configure your
.env.localfile:
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
NEXT_PUBLIC_API_URL=http://localhost:3000- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
medinexa/
├── app/
│ ├── admin/ # Admin dashboard and order management
│ ├── api/ # API routes
│ ├── checkout/ # Checkout flow
│ ├── components/ # Reusable UI components
│ ├── context/ # React context providers
│ ├── dashboard/ # User dashboard
│ ├── database/ # Database utilities
│ ├── hooks/ # Custom React hooks
│ ├── intake/ # Medical intake forms
│ ├── lib/ # Utility functions
│ ├── medications/ # Medication detail pages
│ ├── models/ # Mongoose models
│ ├── order/ # Order pages
│ ├── payment/ # Payment processing
│ └── types/ # TypeScript type definitions
├── public/ # Static assets
└── middleware.ts # Next.js middleware for auth
npm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLintnpm run lint:fix- Fix ESLint errors
- Semaglutide - GLP-1 receptor agonist for weight management
- Tirzepatide - Dual GIP/GLP-1 receptor agonist
- Orlistat - Lipase inhibitor for weight loss
- JWT-based authentication
- Password hashing with bcryptjs
- Protected API routes
- Role-based access control (User/Admin)
- Secure middleware for route protection
This is a private project. For any questions or issues, please contact the development team.
Private and Confidential