Coder Social home page Coder Social logo

andrew-colman / image-fetch Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 3.07 MB

React App (Image fetch from pixabay api )

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

License: MIT License

HTML 2.54% JavaScript 97.25% Shell 0.21%
reactjs javascript api reacthooks pixabay image-fetch hacktoberfest react

image-fetch's Introduction

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

image-fetch's People

Contributors

andrew-colman avatar dependabot[bot] avatar jbampton avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

image-fetch's Issues

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.