Skip to content
Open Data BC Hackathon 2018 Project
JavaScript Python CSS PLpgSQL HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backend
data
frontend
.gitignore
API.md
LICENSE
README.md
config.example.py
create_db.sql
ineedmymeds.ini
package-lock.json
package.json
requirements.txt
run.py
webpack.config.js
wsgi.py

README.md

ineedmymeds

Open Data BC Hackathon 2018 Project. ineedmymeds crowdsources information about medication availability from different pharmacies.

Why this is needed?

  • Medication shortages happen all the time.
  • There’s no way to predict these shortages
  • What happens if you need a medication but it’s not available in your pharmacy?
    • The pharmacy calls the nearest X pharmacies to see if anyone has it
    • It's unrealistic for your pharmacy to call the hundreds of other pharmacies in the city so the patient is left without access to that medication

Built With

  • Flask - Our backend API is a Flask App which responds to requests in JSON
  • React.js - Our front end is a React.js app that communicates with the Flask API.

Setting up the database

The open source datasets that we use. Download them here: * BC After Hours Pharmacies List * Free Drugs Database

cat create_db.sql | sqlite3 ineedmy.db
(venv) python data/import_drugs.py /usr/share/freemedforms/datapacks/appinstalled/drugs/master.db ./ineedmy.db
(venv) python data/pharmacies_scraper.py
python data/import_all_pharmacies.py data/pharmacies_list.csv ineedmy.db  

Installing Dependencies

Python:

(venv) pip3 install -r requirements.txt

NPM:

npm install

Start the App

Python:

(venv) python run.py

React:

npm run start

Contributors

You can’t perform that action at this time.