🔗 CureMedix Live
CureMedix is a feature-rich e-commerce platform designed for selling medicines online. It provides an intuitive user interface, secure authentication, a robust admin dashboard, and seamless payment processing using Stripe.
localStorage
✅ Dynamic Navbar with Profile Dropdown: User-friendly navbar featuring profile dropdown for profile updates, dashboard access, and logout options.
✅ Home Page Slider Section: Dynamic product slides managed by the admin, enhancing the homepage's visual appeal and functionality.
✅ Category Cards Navigation: Interactive category cards that navigate users to detailed medicine lists by category.
✅ Discount Products Section: Draggable card slider for showcasing discounted products using Swiper.js.
✅ Signup, Login, and Social Authentication: Firebase-based authentication with role selection and Google login option.
✅ Shop Page with Modals: Medicine listing in both in tabular & cards format as per user's choice with modals for detailed views and selection functionality.
✅ Token‑based Authentication:
localStorage
Authorization: Bearer <token>
on every API call ✅ Cart Functionality: Users can add medicines to the cart, view details, and remove specific items before checkout.
✅ Admin Dashboard - User Management: Admins can promote/demote users and manage roles dynamically.
✅ Admin Dashboard - Category Management: Admins can add, update, and delete categories with smooth CRUD functionality and a clean UI.
✅ Checkout with Stripe Integration: Secure Stripe payment integration for seamless checkout leading to an invoice page.
✅ Theme Toggle (Dark/Light):
localStorage
The following dependencies are used in the project:
{
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.5.0",
"@tanstack/react-query": "^5.64.2",
"axios": "^1.7.9",
"firebase": "^11.1.0",
"html2pdf.js": "^0.9.0",
"localforage": "^1.10.0",
"match-sorter": "^8.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet-async": "^2.0.5",
"react-hook-form": "^7.54.2",
"react-icons": "^5.4.0",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^7.1.1",
"react-tooltip": "^5.28.0",
"sort-by": "^1.2.0",
"sweetalert2": "^11.15.10",
"swiper": "^11.2.1"
}
Follow these steps to run the project locally:
Clone the repository:
git clone https://github.com/your-username/curemedix.git
cd curemedix
Install dependencies:
npm install
Set up environment variables:
Create a .env.local
file in the root directory and add the following variables:
VITE_apiKey=YOUR_FIREBASE_API_KEY
VITE_authDomain=YOUR_FIREBASE_AUTH_DOMAIN
VITE_projectId=YOUR_FIREBASE_PROJECT_ID
VITE_storageBucket=YOUR_FIREBASE_STORAGE_BUCKET
VITE_messagingSenderId=YOUR_FIREBASE_MESSAGING_SENDER_ID
VITE_appId=YOUR_FIREBASE_APP_ID
VITE_IMAGE_HOSTING_KEY=YOUR_IMAGE_HOSTING_KEY
VITE_Payment_Gateway_PK=YOUR_STRIPE_PUBLIC_KEY
Start the development server:
npm run dev
Open http://localhost:5173 in your browser to see the app in action.
🚀 Developed by Hafiz Al Shams