Skip to content

A modern pharmacy e-commerce platform with a user-friendly UI, secure authentication, and seamless shopping. It features category-based navigation, a fully functional cart, and Stripe-powered checkout. Admins can manage users, categories, and discounts with ease. Built with React, Firebase, and Swiper.js for a smooth, interactive experience.

Notifications You must be signed in to change notification settings

Hafiz-Al-Shams/CureMedix-client

Repository files navigation

CureMedix - Medicine Selling E-commerce Website

CureMedix Screenshot

Live Project

🔗 CureMedix Live

Overview

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.

Technologies Used

  • Frontend: React, React Router, React Hook Form, React Icons, Swiper.js, React Responsive Carousel
  • Backend & Database: expressJS, mongoDB
  • State Management & Utilities: React Query, Axios, Match Sorter, LocalForage
  • Payment Integration: Stripe
  • UI Enhancements: SweetAlert2, React Tooltip, HTML2PDF.js

Key Features

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 tabular format with modals for detailed views and selection functionality.

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.

Dependencies

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"
}

Installation & Running Locally

Follow these steps to run the project locally:

  1. Clone the repository:

    git clone /~https://github.com/your-username/curemedix.git
    cd curemedix
  2. Install dependencies:

    npm install
  3. 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
  4. Start the development server:

    npm run dev
  5. Open http://localhost:5173 in your browser to see the app in action.

Additional Resources


🚀 Developed by Hafiz Al Shams

About

A modern pharmacy e-commerce platform with a user-friendly UI, secure authentication, and seamless shopping. It features category-based navigation, a fully functional cart, and Stripe-powered checkout. Admins can manage users, categories, and discounts with ease. Built with React, Firebase, and Swiper.js for a smooth, interactive experience.

Topics

Resources

Stars

Watchers

Forks

Languages