Skip to content

API for pandemics.live that supports Inventory Querying, Data Management, and Resource Finding

Notifications You must be signed in to change notification settings

balon/pandemics-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandemics-api

API for pandemics.live that supports Inventory Querying, Data Management, and Resource Finding

resources-API

The resource API uses mongoDB as the DBMS required. To setup mongodb use the setup_mongo.sh script. Please make sure to change both the admin and food user passwords before running the script.

pip3 install pymongo
sudo ./setup_mongo.sh mongo.json

In the routes/resources.py file update the passwords to accommodate the changes made to the passwords in the setup_mongo.sh

Upon doing this and all the other normal pandemics-api dependencies are doneyou can run the api.py file.

Example Queries: /v1/resources/get_locations /v1/resources/food_banks?state=CT&town=West%20Haven

Resources API Notice

The mongo.json file must be ran with the setup_mongo.sh the reason for this is it creates a database based on the json file.

About

API for pandemics.live that supports Inventory Querying, Data Management, and Resource Finding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published