GithubHelp home page GithubHelp logo

chimoney-challenge's Introduction

Chimoney Challenge

This is a React project bootstrapped with create-react-app.

Getting Started

First, install project dependencies:

npm install
# or
yarn

Then, run the development server:

npm run start
# or
yarn start

The project would be available at http://localhost:3000

Features implemented

  • Product List: A page to show a list of products Products
  • Cart: A page that contains items added to Cart

Approach

Initially, gift cards data was available from the Chimoney API, but was later unavailable, so I had to quickly switch to the Ecommerce data available, which meant there was not enough time to implement the Product Details page, so I stuck to just building a card for each product, with the name , price and "Add to cart button". I also had to skip making the pages responsive as there was no time

Performance techniques used

  • I made the performance a bit better by implementing Code splitting to enable users load only the bundles they need at a time
  • I also implemented a Skeleton loader for the products page, when attempting to fetch products. This shows users a skeleton of the products, while they are waiting for the products to competely load
  • Caching with local storage was enabled for the Cart

How you could improve the performance of the app

  • The products page could be paginated to avoid fetching all data at once as the number of products grows, the amount of time to load also increases

chimoney-challenge's People

Contributors

oluwaferanmiadetunji 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.