Allows users to find nearby hospitals and to read and post reviews. It uses an Express backend to talk to Firebase and uses Bootstrap for frontend styling. This project was made at HealthHacks 2019 by Alex Ruiz, Alex Peng, Eric Pedley, and Andrew Vuong.
Welcome. This is a guide to using the server's API endpoints.
For local development, you can host a local server by running the following in
the backend/ directory.
npm i
npm start
...
// The server is now running on localhost:3000.Accepts POST request with following data in JSON format:
{
"lat": "...",
"long": "..."
}
// OR with zipcode
{
"zip": "..."
}Returns JSON data in following format:
[
{
"id": "0",
"name": "...",
"address": "...",
"proximity": "...", //in miles
"lat": "...",
"long": "...",
"rating": {
// all out of 5 stars
"Cultural Sensitivity": "...",
"Hospitality": "...",
"Quality of Care": "..."
}
},
...
]Accepts POST request with following data in JSON format:
{
"id": "..." //ID of the hospital
}Returns JSON data in following format:
{
name: "",
address: "",
lat: "",
long: "",
website: "",
reviews: [
{
"id": "me@example.com",
"name": "Jane Doe",
"rating": {
// The following are all numbers from 1 to 5
"Cultural Sensitivity": "...",
"Hospitality": "...",
"Quality of Care": "..."
},
"comment": "..."
},
...
]
}