Skip to content

StartupShell/umd-barcode-lookup

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published