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.
-
Make sure you have a Cloudinary account or register for free.
-
Rename
.env.example
to.env
and replace the dummyCLOUDINARY_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. -
Make sure you're registered for the Google Auto-Tagging add-on (free tier available).
-
Make sure you're registered for the Cloudinary AI Background Removal add-on (free tier available).
- In the
doc-home-node-app
directory, runnpm install
to get the required modules. - Run the demo app using
npm start
. - Take a look at the generated transformation URL and the upload API responses.