Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.97 KB

README.md

File metadata and controls

46 lines (26 loc) · 1.97 KB

🔀 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