This repository holds a simple node server that proxies external APIs for use in PDAP applications.
| path | description | methods | body | params | auth |
|---|---|---|---|---|---|
/donor-box<donor-box-api-path> |
Proxy for the DonorBox API within the PDAP org | GET |
n/a | donor box params | n/a |
/health |
Health check for the API | GET |
n/a | n/a | n/a |
- Clone the repository and
cd frontend-proxy-server - Ensure you have obtained and set the following variables either in your shell environment or in a
.envfile
# required
DONOR_BOX_AUTH_ALIAS=foo
DONOR_BOX_API_KEY=bar
# optional
PORT=3333 # defaults to 3000
NODE_ENV=production # defaults to development.- Install dependencies
npm i- Run the server
npm run dev