Skip to content

Burry/Get-Random-GIF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”€ Get Random GIF

Redirect to a random GIF on GIPHY. Supports all request parameters from the GIPHY API Random Endpoint as well as an additional rendition parameter.

Random GIF

๐Ÿ›  Development

You'll need Node.js and Yarn installed in your local development environment. Run yarn inside the repository root to install dependencies before proceeding.

โš™๏ธ Environment Variables

Set the following environment variables in .env and in your production environment:

GIPHY_API_KEY # Get a key from the GIPHY Developer Portal.
GIPHY_TAG # Default: success
GIPHY_RATING # Default: pg
GIPHY_RENDITION # Default: original

Defaults are set for all but the API Key. See the GIPHY API documentation for more info on request parameters.

All variables can be overridden in the URL query string parameters (e.g. append ?tag=cat to the URL to request a random GIF tagged with a cat). A rendition parameter is available to request a specific GIF size.

yarn dev

Runs the development server. Changes will automatically refresh the page.

yarn build

Builds the app for production.

yarn start

Starts the production server.

๐Ÿ“ฆ Deploy Your Own

Deploy using Vercel:

Deploy with Vercel

Documentation

About

๐Ÿ”€ Redirect to a random GIF on GIPHY

Topics

Resources

License

Stars

Watchers

Forks