https://github.com/jerdog/sample-unsplash-img-get
https://github.com/jerdog/sample-unsplash-img-get
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jerdog/sample-unsplash-img-get
- Owner: jerdog
- Created: 2023-05-17T14:28:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T15:00:59.000Z (about 3 years ago)
- Last Synced: 2025-02-02T17:30:46.088Z (over 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Unsplash API in Javascript
_taken from [here](https://javascript.plainenglish.io/a-beginners-guide-to-unsplash-api-in-javascript-2524c51ae1f3)
## Requirements
- Install node packages (`unsplash-js` and `node-fetch`)
```bash
npm install
```
- create .env file with Unsplash API key, via [Dashboard](https://unsplash.com/oauth/applications)
```bash
UNSPLASH_KEY=API_KEY_FROM_UNSPLASH
```
- Create a folder called `images` to store your results
- Run via `node index.js`