Skip to content
On this page

Cloudinary

This service allows you to manage your files with Cloudinary services.

📦 Installation

$ npm install @filesrocket/cloudinary

🔧 Setup

Before using this service it is necessary to create an account to obtain access credentials. Visit here to create an account.

🧑‍💻 Basic usage

To use the service add the following content.

import { Filesrocket } from "@filesrocket/core";
import { CloudinaryService } from "@filesrocket/cloudinary";

// Initialize filesrocket
const filesrocket = new Filesrocket();

// Setting service
const cloudinary = new CloudinaryService({
  pagination: { default: 15, max: 50 },
  cloud_name: "<Your CLOUD NAME>",
  api_key: "<Your API KEY>",
  api_secret: "<Your API SECRET>"
});

// Register services
filesrocket.register("cloudinary", cloudinary);

// Recovering service
const service = filesrocket.service("cloudinary");

// Recovering controller
const controller = filesrocket.controller("cloudinary");

Released under the MIT License.