Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.41 KB

README.md

File metadata and controls

17 lines (11 loc) · 1.41 KB

Docs Home Node Sample

This small sample app parallels the interactive demo on the Cloudinary Doc site home page. It demonstrates using the Node SDK to upload a remote image to Cloudinary and then generates URLs that apply various image transformations to achieve a realistic e-commerce use-case.

Prerequisites

  1. Make sure you have a Cloudinary account or register for free.

  2. Rename .env.example to .env and replace the dummy CLOUDINARY_URL environment variable value with yours. You can copy the full environment variable or the individual credentials from your Cloudinary Console Dashboard.

    Note that .env is included in the .gitignore of this repo. Make sure you never store your Cloudinary environment variable or API secret in any publicly accessible location.

  3. Make sure you're registered for the Google Auto-Tagging add-on (free tier available).

  4. Make sure you're registered for the Cloudinary AI Background Removal add-on (free tier available).

Running the app

  1. In the doc-home-node-app directory, run npm install to get the required modules.
  2. Run the demo app using npm start.
  3. Take a look at the generated transformation URL and the upload API responses.