Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.24 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.24 KB

umd-barcode-lookup

umd-barcode-lookup is a Google Cloud Function that takes in a UMCP library barcode value and looks up the information in the University of Maryland LDAP directory. It is needed because the LDAP directory has secret credentials required for access.

Deploying

Setting up your GCP account

  1. Create a project to deploy under
  2. Enable serverless APIs: Click here
  3. Enable secret manager APIs: Click here

Deploying the code

Before you start, ensure you have the gcloud CLI installed.

  1. Clone the repo
  2. Set up .env.yaml with your LDAP DN for access
  3. Set your LDAP password by running npm run setsecret:LDAP_PASSWORD -- <password>
  4. Build the function: npm run predeploy
  5. Deploy the function: npm run deploy

The URL to the function will be in the output of the deploy command.