Pranav122002 / Medi-Share

Medi-Share is an online portal for donation of unused medicines for needy ones.
https://medi-share.vercel.app
MIT License
3 stars 1 forks source link

Medi-Share

The pharmaceutical industry in India suffers a significant loss every year due to the destruction of expired drugs, particularly affecting small and medium drug manufacturers. At the same time, there are many households where medicines remain unused and expire. To address these issues, Medi-Share allows individuals to donate their unused, unexpired medications to a community pharmacy or medicine bank that will distribute them to people in need, free of charge.

The application has several potential features, including the ability to appoint and manage volunteers by admin who can help collect unused medicines, track and manage the collected medicines, and connect users with relevant NGOs and charitable trusts. Additionally, doctors can join the local community to offer their assistance. Users can message with other users or in global community chat, view nearby hospital details, view disease predictions based on symptoms, etc.

To prevent the misuse of donated medicines, there is a capacity on the quantity that is supplied to each consumer. A proper dashboard is also in place to monitor the usage of the collected medicines and to provide an expiry date alert feature.

Through this initiative, people can now dispose of unused medicines in a safe and responsible manner, while also helping those who cannot afford essential medicines due to financial constraints. Overall, this project has the potential to make a significant impact by reducing the destruction of expired medicines, promoting community involvement, and providing essential medicines to those in need, free of cost.

Key Features

The platform offers the following key features:

Demo Links

Installation & Running

Clone the project:

git clone https://github.com/Pranav122002/Medi-Share.git

Backend Setup

Create .env file in backend folder and add your Twilio and google maps api keys in the file.

accountSid=YourSid
authToken=YourAuthToken
whatsapp_phone_no=YourTwilioPhoneNo
GOOGLE_MAP_API = "Your MAP API"

Create dev.js in backend/config folder and add the following:

module.exports = {
    MONGOURI:
    "Mongodb Atlas url",
    JWT_SECRET: "Your jwt secret",
  };

Open terminal in backend folder:

cd .\Medi-Share\backend\
npm install
node app.js

Frontend Setup

Create firebase.js in frontend/src folder and add the following:

import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
const firebaseConfig = {
  apiKey: "",
  authDomain: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: "",
  appId: "",
  measurementId: ""
};

const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);

Create keys.js in the same folder and add the following:

export const CLOUD_NAME = "";
export const UPLOAD_PRESET = "";
export const REACT_APP_GOOGLE_MAP_API_KEY = "Your API key"

Open terminal in frontend folder:

cd .\Medi-Share\frontend\
npm install
npm start

Go to your localhost:3000

http://localhost:3000/

Tools used