Skip to content

sayid-hasan/HealthBox

Repository files navigation

HealthBox: Medicine E-Commerce Website

HealthBox is a full-stack e-commerce platform designed for online medicine sales. It provides users with a seamless experience to browse, purchase, and manage their orders while allowing admins to oversee products, users, and payments.

🚀 Features

🛍️ User Features

  • Secure Firebase authentication (Google & Email/Password login)
  • Browse medicines by category, featured products, and best sellers
  • Add medicines to cart, update quantities, and checkout
  • View order history and track purchases
  • User profile management

🔧 Admin & Seller Features

  • Admin Dashboard to manage users, products, and orders
  • CRUD functionality for product management
  • Seller Dashboard to manage individual products and sales

💳 Payment & Security

  • Stripe integration for secure transactions
  • Role-based access control (Admin, Seller, Customer)
  • Invoice generation after successful payment
  • Dynamic stock updates after purchase

🖼️ Screenshots

🔹 Landing Page

Landing Page

🔹 Registration Page

Registration Page

🔹 User Dashboard

User Dashboard

🔹 Admin Dashboard

Admin Dashboard-sales_report

🔹 Seller Dashboard

Seller Dashboard

🔹 Cart Page

Cart Page

🛠️ Tech Stack

Frontend:

  • React.js (with React Router)
  • Tailwind CSS

Backend:

  • Node.js & Express.js
  • MongoDB (Database)
  • Firebase Authentication
  • Stripe Payment Gateway

📌 Installation & Setup

  1. Clone the repository
    git clone https://github.com/yourusername/healthbox.git
    cd healthbox
  2. Install dependencies
    npm install
  3. Set up environment variables (.env file)
    MONGO_URI=your_mongodb_connection_string
    FIREBASE_API_KEY=your_firebase_api_key
    STRIPE_SECRET_KEY=your_stripe_secret_key
    
  4. Run the development server
    npm run dev

🚀 Deployment

  • Frontend: Hosted on firebase
  • Backend: Hosted on Vercel/Render
  • Database: MongoDB Atlas

📜 License

This project is open-source and available under the MIT License.

💡 Future Enhancements

  • Implement prescription uploads for certain medicines
  • Add a loyalty points system for frequent buyers
  • Enable order tracking with real-time updates

📩 Connect with Me

If you have any questions or want to collaborate, feel free to reach out!

🔗 GitHub: Sayid Hasan
🔗 LinkedIn: Mohammad Syed Hasan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published