Skip to content

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

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. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. 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 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 Medical Products
  2. Seller's Dashboard with Inventory Management
  3. Order Cart & Wishlist
  4. Order Tracking & History along with its Cancelling
  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

Roadmap

  • Add Signup & Login
  • Add Home Page
  • Add Prodcut Landing Page
  • Add Search Page
  • Add Cart & Wishlist
  • Add Seller's Dashboard
  • Add Invertory Management
  • Add Checkout Page
  • Add Order Tracking, History & Cancellation
  • Add Online Payment
  • Add Grievances

See the open issues for a full list of proposed features (and known issues).

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