Coder Social home page Coder Social logo

nazimhali / imgur-explorer Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 1.16 MB

ReactJS imgur explorer - modern build process using ViteJS, TailwindCSS, lazy-loading, code-splitting.

Home Page: https://imgur-explorer.vercel.app/

JavaScript 0.51% TypeScript 96.09% HTML 0.10% SCSS 3.27% Shell 0.02%
react image-gallery imgur vite typescript lazy-loading reactjs imgur-api tailwindcss responsive

imgur-explorer's Introduction

Imgur Explorer

Lint CodeQL Unit Tests

DeepSource DeepSource

Branches Functions Lines Statements
Coverage: Branches Coverage: Functions Coverage: Lines Coverage: Statements

Example application using ReactJS + Imgur API + vite bundler. Fluid & responsive layout.

Features

  • ReactJS in TypeScript
  • Vite (fast production bundler)
  • TailwindCSS
  • Lazy loading & code splitting
  • Image modal
  • imgur API features
    • Search
    • Sort results
    • Explore tags
    • Item comments (in modal)
Mocked Data From API

If you don't want to register and use the free Imgur API, it will use mocked data/saved responses from the API. It's also useful for faster local development so you don't have to make new requests with every HMR update.

Google PageSpeed Scores
TODO: automate + add badge for live scores

image

Quick start

yarn
yarn dev

Build

yarn build
yarn serve

Imgur API

  1. Free registration
  2. Pass the client ID as an environemnt variable (can be in .env or through CLI)
    • PUBLIC_IMGUR_CLIENT_ID=xxxxx yarn dev

TODO - Contributions Welcome :D

Features

  • Explore by categories
  • Profile login
  • Upload images

Tests WIP

  • ~70% unit test coverage
  • Cypress performance & integration tests
  • Accessibility tests

imgur-explorer's People

Contributors

crazy25000 avatar deepsourcebot avatar nazimhali avatar

Stargazers

 avatar  avatar

imgur-explorer's Issues

ENH: Add virtual scrolling

All items from a response are rendered on load. Would be more efficient to dynamically render them + set a cap on the maximum number of elements. Currently it's also the number one performance issue. ๐Ÿ˜ฑ

MNT: Update coverage threshold

There's a bug with jest + vitejs with coverage option, but can use DeepSource GitHub action to track coverage for now. Need to maintain ~70% coverage for core functionality.

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.