Giter Site home page Giter Site logo

pixelchains-shop's Introduction

Welcome to Pixeart shop

This project has been started with CRA typescript tempate.

Core libraries used

  • Chakra-UI: UI library that has very useful, highly customizable components that supports responsiveness and WAI-ARIA follows
  • Cypress: Automated testing

There is room for improvements!

  • More unit testing
  • Better UI - add colors, fonts
  • Better Responsiveness

I take the desition of not to use a library for the infinite scroll but to write myself the required pieces:

  • loadMore() method that will append more items to existing
  • debounce to avoid throttling
  • Observer to check whether user is near the bottom (100px)
  • Created some custom hooks to handle data loading and scroll position
  • I put some css passing as props into Chakra components
  • I do not create a Context by myself but <ChakraProvider theme={theme}> is an example of how Context works, its injecting the theme over the elements tree.

To run:

create .env with:

REACT_APP_API_KEY=0e090a5d0169429c9c96839dc9b24ec5 REACT_APP_API_URL=https://api.opensea.io/api/v1/assets?collection=pixelchain&order_direction=desc&limit=20&include_orders=false

(in normal production app i will not pass api key here)

then:

yarn && yarn start

To open cypress and run tests: yarn run cypress-open

pixelchains-shop's People

Contributors

valenciahq avatar

Stargazers

Roman avatar  avatar

Watchers

 avatar

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.