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
- Host: GitHub
- URL: https://github.com/oskarrough/cloudinary-endpoint
- Owner: oskarrough
- Created: 2017-12-15T10:43:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-11T17:33:17.000Z (over 5 years ago)
- Last Synced: 2025-02-10T08:31:52.694Z (about 1 year ago)
- Topics: cloudinary, microservice, now
- Language: JavaScript
- Homepage: cloudinary-endpoint.oskar.vercel.app
- Size: 124 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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