This is a mock endpoint which responds with a list of n
fake addresses in the form:
[
{
"firstName":"Dixie",
"lastName":"Huels",
"donatingFood":true,
"donatingMoney":true,
"location":
{
"lat":47.6914,
"lon":175.4313
}
}
...
]
To use the endpoint:
- clone this repository
- run npm install to install dependencies
- specify the number of donors you want to get using the
numberOfFakes
const - specify the error rate (.0 for no errors, 1.1 for error every time, .5 for 50/50, etc) using
errorChance
const - run
npm start
to run the API locally - Make requests to
http://localhost:3000/donor-list