An open API service indexing awesome lists of open source software.

https://github.com/oskarrough/cloudinary-endpoint

A single HTTP endpoint to fetch all images from a Cloudinary account
https://github.com/oskarrough/cloudinary-endpoint

cloudinary microservice now

Last synced: 12 months ago
JSON representation

A single HTTP endpoint to fetch all images from a Cloudinary account

Awesome Lists containing this project

README

          

# Cloudinary Endpoint

> A single HTTP endpoint to fetch all images from a Cloudinary account

Why? Cloudinary requires authentication before you can fetch images. Since you don't want to do this in the front-end, this Node.js microservice authenticates for you and returns all images unfiltered as JSON.

It is a handy way to create large galleries with all the (mostly free!) advantages Cloudinary offers for responsive images, performance and image hosting. As an example, the website https://torstenmosumgaard.dk is fetching its images from https://keramik.now.sh.

## How to use

If you're using [`now`](https://zeit.co/now) it is as easy as running this command:

```
now oskarrough/cloudinary-endpoint -e CLOUD_NAME=xxx -e API_KEY=xxx -e API_SECRET=xxx
```

Find your keys in the [Cloudinary console](https://cloudinary.com/console).

Alternatively (still using `now`), you can also store your keys in an `.env` file. Clone this repository, `cp .example-env .env`, add your Cloudinary keys to it and run `yarn deploy`.

> As long as you set the three environment variables, you should be able to deploy it to any node host.

## Development

- `yarn start` to start production server
- `yarn dev` to develop
- `yarn deploy` to deploy