Starter codebase for BME590 Databases Assignment (which can be found here).
To get started with this sample code, you first need to get the mongodb program running. To do this, simply run
docker run -v $PWD/db:/data/db -p 27017:27017 mongo
either on your local machine (if you have docker installed there) or on a virtual machine you have access to where you can first install docker.
đź‘€ if you are running your mongodb database on a virtual machine, you need to replace the connect
URI string in main.py
. Replace localhost
with a VM address, like so:
connect("mongodb://vcm-0000.vm.duke.edu:27017/heart_rate_app") # open up connection to db
once your database is running and your connection string is set, you can run the starter program by running main.py
after activating your virtualenv
and installing all the dependencies listed in requirements.txt
.
python main.py