Skip to content

Node proxy server for external APIs required by PDAP client applications

Notifications You must be signed in to change notification settings

Police-Data-Accessibility-Project/proxy-server

Repository files navigation

PDAP Proxy API

This repository holds a simple node server that proxies external APIs for use in PDAP applications.

Available routes

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

Getting started

  1. Clone the repository and cd frontend-proxy-server
  2. Ensure you have obtained and set the following variables either in your shell environment or in a .env file
# required
DONOR_BOX_AUTH_ALIAS=foo
DONOR_BOX_API_KEY=bar

# optional
PORT=3333 # defaults to 3000
NODE_ENV=production # defaults to development.
  1. Install dependencies
npm i
  1. Run the server
npm run dev

About

Node proxy server for external APIs required by PDAP client applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published