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.
- Create a project to deploy under
- Enable serverless APIs: Click here
- Enable secret manager APIs: Click here
Before you start, ensure you have the gcloud
CLI installed.
- Clone the repo
- Set up
.env.yaml
with your LDAP DN for access - Set your LDAP password by running
npm run setsecret:LDAP_PASSWORD -- <password>
- Build the function:
npm run predeploy
- Deploy the function:
npm run deploy
The URL to the function will be in the output of the deploy command.