Table of Contents
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.
Run the following command in your project directory's terminal:
npm install
-
Node.js
-
NPM
-
Firebase Account
-
Clone this repository:
git clone https://github.com/ArmanKhanTech/Medicomm.git
-
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",
-
Run the project by typing localhost:3000/index.html in your browser.
OR
Navigate to DockerHub.
- Purchase or sell medicines & other products.
- Seller's dashboard with inventory management.
- Order cart & wishlist.
- Order tracking & history.
- Online payment with Razorpay.
- Check item's availability using pincode.
- Search items by name, type, category or usage.
- Submit grievances.
- Signup and Login.
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!
Distributed under the MIT License. See LICENSE.txt
for more information.
Arman Khan - ak2341776@gmail.com
Project Link - https://github.com/ArmanKhanTech/Medicomm
DockerHub Link - https://hub.docker.com/r/armankhan792/medicomm