https://github.com/oskarrough/torstenmosumgaard-api
https://github.com/oskarrough/torstenmosumgaard-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/oskarrough/torstenmosumgaard-api
- Owner: oskarrough
- Created: 2020-10-11T10:19:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T22:34:57.000Z (over 3 years ago)
- Last Synced: 2025-02-10T08:31:39.092Z (over 1 year ago)
- Language: JavaScript
- Homepage: torstenmosumgaard-api.vercel.app
- Size: 70.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudinary Endpoint
https://torstenmosumgaard-api.vercel.app/api/images
> 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 this function.
## How to use
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.