Using the Unsplash API to come up with drawing prompts!
Live site at whattodraw.melanie-richards.com
This project uses Netlify serverless functions, and the Netlify CLI for local development. Prereqs: Node.js v10+, (free) account on Netlify.
- From the Unsplash API documentation, "register as a developer".
- Create a new application.
- Once created, copy your "Access Key".
- Create a file
.env
in the root directory of this project, and set the contents of the file toUNSPLASH_API_KEY=YourAccessKeyGoesHere
. - Navigate to the project directory in your terminal, and run
npm install
to install dependencies.
- Navigate to the project directory in your terminal / command line.
- Run
npm install netlify-cli -g
. - Run
ntl login
to log into Netlify. - Run
ntl dev
to spin up the local development server.
Command | Purpose |
---|---|
ntl dev |
Run local dev server |
npm run watch:sass |
Watch and compile changes to Sass files |
Photo of water in site icons by Akira Hojo.