Skip to content

Medicomm is a e-pharmacy website built with HTML, CSS, JavaScript, Node.js, Express, and Firebase. It supports medicine sales, online payments, inventory management, and order tracking. Available on Docker.

License

Notifications You must be signed in to change notification settings

ArmanKhanTech/Medicomm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Medicomm

Status: Completed

A pharmaceutical e-commerce website.

Explore the docs »
Report a Bug · Request new Features


Table of Contents
  1. About The Project
  2. Getting Started
  3. Features
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About the Project

This e-pharmacy is a business model that deals with the preparation and sale of prescription and non-prescription drugs as in traditional pharmacies. However, online pharmacies take orders online and send the drugs to their destination by post.

Now also available on Docker.

Ideal to view only on 1920x1080p 15-inch display since this website isn't responsive.

Built with

  • HTML
  • CSS
  • JS
  • Nodejs
  • Expreeejs
  • Firebase

Getting Started

Run the following command in your project directory's terminal:

npm install

Prerequisites

  1. Node.js

  2. NPM

  3. Firebase Account

Installation

  1. Clone this repository:

    git clone https://github.com/ArmanKhanTech/Medicomm.git
  2. Make the following changes in:

    a) /server.js:

    Line 8 : Enter your Razorpay ID & SECRET ID here (nessecary for online payment):

    const Razorpay = require("razorpay");
    const razorpay = new Razorpay({
      key_id: "YOUR RAZORPAY ID",
      key_secret: "YOUR RAZORPAY SECRET KEY",
    });

    Line 13 : Enter the name of your firebase credential file here (the one you will download from your firebase console):

    let serviceAccount = require("./YOUR FIREBASE SERVICE ACCOUNT KEY.json");

    Line 511 : Enter the E-mail ID & password here (it will be used to send notification to customers after placing order):

    let transporter = nodemailer.createTransport({
      host: "smtp.gmail.com",
      auth: {
        user: "YOUR EMAIL ID",
        pass: "YOUR EMAIL PASSWORD",
      },
    });

    b) /js/product.js:

    Line 57 : Enter your distancematrix.ai token here (or you can use Google Distance Matrix API too):

    let url =
      "https://api.distancematrix.ai/maps/api/distancematrix/json?origins=${sellerPin}&destinations=${userPin}&departure_time=now&key=YOUR TOKEN ID";

    c) /js/checkout.js:

    Line 63 : Enter your Razorpay ID here:

    const onlineCheckout = () => {
    var options = {
        "key": "YOUR RAZORPAY KEY",
  3. Run the project by typing localhost:3000/index.html in your browser.

OR

Navigate to DockerHub.

Features

  1. Purchase or sell medicines & other products.
  2. Seller's dashboard with inventory management.
  3. Order cart & wishlist.
  4. Order tracking & history.
  5. Online payment with Razorpay.
  6. Check item's availability using pincode.
  7. Search items by name, type, category or usage.
  8. Submit grievances.
  9. Signup and Login.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

Don't forget to give the project a star!

Thanks again!

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Arman Khan - ak2341776@gmail.com

Project Link - https://github.com/ArmanKhanTech/Medicomm

DockerHub Link - https://hub.docker.com/r/armankhan792/medicomm

About

Medicomm is a e-pharmacy website built with HTML, CSS, JavaScript, Node.js, Express, and Firebase. It supports medicine sales, online payments, inventory management, and order tracking. Available on Docker.

Topics

Resources

License

Stars

Watchers

Forks