Use this app to search for GIFs from GIPHY.
-
Install dependencies:
npm install or yarn install
-
Create a
config.js
inside of thesrc
directory, and enter the parameters and your GIPHY API key:module.exports = { baseUrl: 'https://api.giphy.com/v1/gifs/', endpoint: 'search', defaultEndpoint: 'trending', limit: '12', offset: '0', rating: 'PG', lang: 'en', apiKey: 'YOUR_GIPHY_API_KEY' }
-
To start the dev server, run:
npm run start or yarn start
-
Produce a production build by running:
npm run build or yarn build
-
If you wish, publish to GitHub Pages by running:
npm run deploy or yarn deploy
Fig. 1 – Search results
- Allow users to set the limit (up to a max, of course) on number of GIFs to retrieve
- Add option to get more GIFs after initial search results
- Allow users to mark and save favorite GIFs