Giter Site home page Giter Site logo

nextjs-giphy's Introduction

Giphy API - Brandon GS

Live version: https://nextjs-giphy.vercel.app/

Development tools

  • Reactjs / Nextjs
  • Javascript / Typescript
  • CSS / SASS
  • Material UI

Getting started

Clone this repo:

git clone [email protected]:brandon-gs/nextjs-giphy.git
cd nextjs-giphy

Install dependencies:

yarn

Config the .env.development.local file with the correct values

cp .env.example .env.development.local

Run the project

yarn dev

Environment variables docs

Variable name
GIPHY_KEY GIPHY API Key required to make requests to the GIPHY API. (required)

Questions and Answers

Why use nextjs api routes?

I use nextjs api routes as proxy to consult giphy api. For security reasons I can hide the GIPHY_KEY from the client and all the requests the client would make.

nextjs-giphy's People

Contributors

brandon-gs avatar

Watchers

 avatar

nextjs-giphy's Issues

Create api request to get giphy images with pagination

  • Add .env file and .env.example file with GIPHY API KEY

  • Create proxy using nextjs api endpoints to call giphy api

  • Create ImageCard component

  • Create ImageCardList component

  • Config react-query to make api calls to api

  • Implement Infinite Scroll

  • Create GiphyTrending container

  • Create GiphySearch container

  • Implement responsive design

  • Retry get Data component

  • Implement like feature

  • Deploy it on render or vercel

Create ImageCard component

Create ImageCard component:

  • Must use Image component from nextjs
  • "liked" prop -> change the color heart if the value is true
  • "imageUrl" prop -> image url from giphy or localhost should be allowed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.