Code Monkey home page Code Monkey logo

giphy-search's Introduction

Matt Zaso - Giphy Search

A simple, responsive giphy browser. On initial load this site will show all of the most recently trending gifs. Users can select a gif to see it's full-quality version and supplied title. Searching for a gif will return the matching set from the giphy servers. Scrolling to the bottom of the page will load additional gifs as well.

Check it out on github pages here: https://matthewzaso.github.io/giphy-search/

or checkout and run it locally with npm install and npm run start

Build System

  • Added Webpack to compile and bundle all file types.
    • Easily bundle all js and compile scss
    • Allows us to use webpack dev server and hot reloading
  • Included Babel loader to add support for ES6 code
    • Uses preset-env to support older browsers
  • Added PostCss/Autoprefixer for wider browser support

Project Structure

  • Project pieces separated out into containers, components, with matching css structure for better organization
    • Containers made to hold majority of app logic, while components are simplified to render-only items.

Frontend

  • Basic, custom 12-col CSS grid added for responsive scaling.
  • Redux added for better scaling and state management
    • Probably not necessary with the small amount of state management required right now, but offers greater scalability.
    • Using dispatch feels cleaner than modifying state directly anyways.
  • Makes use of upcoming JS features such as promises and fetch (polyfilled)
  • Use intersection observers (with polyfill) to create an infinite scroll experience
    • A reducer adds additional gifs to the current collection

Potential improvements

  • Cache html/js/css and trending API with serviceworker through workbox plugin for webpack
    • Initially added, but removed due to not using https locally for development
  • Add paddles to pop-up modal to use a carousel-like experience for browsing
    • Could be implemented by instead passing all gif data to the modal for easy switching.

giphy-search's People

Contributors

matthewzaso avatar

Watchers

James Cloos avatar

Forkers

sawantakash321

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.