Andrew-Colman / image-fetch

React App (Image fetch from pixabay api )

Home Page:https://image-fetch.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Description

This React App fetch Pixabay api information then displays a gallery of images with Author's name and number of total downloads

  • 🀩 sweet images updated daily

  • ❓ cars, cats, backgrounds, search for anything

dog

cat

car

earth

girl

Users can search images and choose image colors

Image type (Photo/Vector/Illustration), limit the results per page (max 20)

Download any Image or save them to local /gallery

React Features:

Hooks: useState, useEffect, useRef, useContext


-> Redux # state management

-> React lazy # code splitting

-> Suspense # useful loading states

-> Vercel serverless # api

-> My Custom react hooks: useQuery, useParams, useScroll, useLocalStorage, and more...

Style:

πŸ”· Bootstrap

πŸ’… Styled components (custom css)

πŸ“±  Responsive Web design

Additional packages:

Axios: Promise based HTTP client

Reactstrap: Bootstrap React components

React-router: Dynamic client-side routes

Dot env: Environment variables

Remote preview:

Any pull request will trigger a build

vercel bot will give a preview url after it's built (should take 10s - 20s)

vercel bot example

no further configuration or api keys required

Local testing:

rename .env.example to .env and apply

REACT_APP_API_KEY = 'your pixabay api key'; // (dev)
REACT_APP_IMGBB_API_KEY = 'your imgbb api key'; // (dev)

then run:

vercel dev # to run serverless api endpoint and it will run start command

get your api keys here:


Pixabay is a free public domain image repository (CC0)

IMGBB is a free image host

About

React App (Image fetch from pixabay api )

https://image-fetch.vercel.app/

License:MIT License


Languages

Language:JavaScript 97.2%Language:HTML 2.5%Language:Shell 0.2%