Programmable Media

Configure the Node.js SDK (video tutorial)

Last updated: Dec-11-2024

Overview

Learn how to install and configure the Cloudinary Node.js SDK in your Node.js environment.

Video tutorial


View the code
You can find the code from this tutorial in GitHub.

Tutorial contents

This tutorial presents the following topics. Click a timestamp to jump to that part of the video.

The Cloudinary Node.js SDK

Jump to this spot in the video  0:05 The Cloudinary Node.js SDK provides image and video upload, transformation, optimization, and delivery capabilities that you can implement using code that integrates seamlessly with your existing Node.js application.

Install the Node.js SDK

Jump to this spot in the video  0:13 To install the Node.js SDK, in a terminal run:

Import Cloudinary into your project

Jump to this spot in the video  0:29 To import Cloudinary into your project use:

Configure Cloudinary

Jump to this spot in the video  0:51 To configure the SDK for your product environment, you can include your cloud name, API key and API secret in the config, in addition to other configuration parameters, like this, using .env to keep your credentials safe:

Note
You can find your credentials in the API Keys page of the Cloudinary Console Settings.

Use the CLOUDINARY_URL environment variable

Jump to this spot in the video  2:03 Alternatively, you can set the CLOUDINARY_URL environment variable in your environment, which includes your cloud name, API key and API secret in one string.

Keep learning

Related topics

If you like this, you might also like...

Optimization Tips
Tips for delivering optimized images
Upload Images in Node.js
Upload images to Cloudinary using the Node.js SDK
Named Transformations
Simplify & standardize complex delivery URLs

 

Cloudinary Academy

 

Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.

 

✔️ Feedback sent!

Rate this page: