Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 2.07 KB

README.md

File metadata and controls

32 lines (24 loc) · 2.07 KB

certinize-object-processor

Setup

  1. Create a copy of .env.example and rename the copy to .env.

ImageKit.io Setup

  1. Register at https://imagekit.io/registration/

  2. Once registerd, go to your dashboard's developer options where you will find your Public Key, Private Key, and URL-endpoint.

  3. Add your keys and URL endpoint as environment variables in your machine or copy and paste them in your .env file:

    IMAGEKIT_ENDPOINT_URL=Your ImageKit URL endpoint
    IMAGEKIT_PUBLIC_KEY=Your ImageKit public key
    IMAGEKIT_PRIVATE_KEY=Your ImageKit private key

Google Drive API Setup

  1. Create a Google Cloud Project. Follow the instructions here: https://developers.google.com/workspace/guides/create-project
  2. Create a Google Service Account for the project you just created. Follow the instructions here: https://support.google.com/a/answer/7378726?hl=en
  3. Create a Service Account Key here: https://console.cloud.google.com/apis/credentials/serviceaccountkey.
    1. If the page prompts you to select a project, choose the project you just created.

    2. If you see a table that lists the service accounts for the project you selected, click the email of one of the listed service accounts. It should show the details of the service account.

    3. Find and click the Keys tab, then find and click the Add Key button.

    4. Select Create new key.

    5. Select JSON as the key type.

    6. Click Create and you should see a JSON file being downloaded from your browser.

    7. Once the download completes, rename the JSON file to certinize-gdrive-client.json and move it to the project root directory.

      CAUTION: Do not include your private key or the certinize-gdrive-client.json file in your commits unless you are deploying to hosting services like Heroku.