This program showcases relevant GIFs from GIPHY based on the user's search term. If nothing is provided, the trending GIFs are posted instead. This app uses giphy-api to call the APIs.
Open https://glacial-garden-54215.onrender.com/.
- Obtain an API key from GIPHY.
- Create a
.env
file with the lineGIPHY_API_KEY=<YOUR_API_KEY>
. - Install node dependencies:
npm install
. - Run the server:
node app.js
. - Open localhost:3000 in the browser to access the site.
Press Ctrl+C to stop the server when done.
- Obtain an API key from GIPHY.
- Create a
.env
file with the lineGIPHY_API_KEY=<YOUR_API_KEY>
. - Build the docker image:
docker build . -t <your username>/node-web-app
. - Run the image:
docker run --rm -p 8080:8080 -d <your username>/node-web-app
. - Open localhost:8080 in the browser to access the site.
Run docker kill <container id>
to shut down the image when done. The container ID can be found using docker ps
.