A mini project using the Pixabay API
The user can select a color red
, yellow
, green
or purple
The applciation then selects a random search term.
Search terms:
- man
- mountain
- state
- ocean
- country
- building
- cat
- airline
- wealth
- happiness
- pride
- fear
- religion
- bird
- book
- phone
- rice
- snow
- water
This is then sent to the Pixabay API as a searchTerm eg yellow snow
๐
Clone the repositories
git clone
Install packages โฌ๏ธ
npm install
You will have to create your own API key here. This can then be added to a .env
file in the root of the project.
REACT_APP_PIXABAY_KEY=/*your key goes here*/
Run the app ๐
npm start
Run tests โ
npm test