GithubHelp home page GithubHelp logo

fake-store's Introduction

Bargreen Technical Challenge

This is a simple website built using NextJS, React, Redux, and Typescript that queries data from Fake Store API.

Choose one or two of the feature requests below, then fork this project and implement the chosen feature(s) in your copy. We would like you to spend about two hours of development time total on this challenge, and if you choose to target just one feature request we would like to see it more fully fleshed out/complete.

  1. Add a login flow

    • Add a redux state to track user login status
    • Update AccountButton with some conditional rendering to represent login status
    • Hide product prices > $500 from signed out users, replace label with "Sign in to view pricing" or similar verbage
    • Implement a sign out action
  2. Add catalog filtering/sorting

    • Create a display component for a product's rating property
    • Create a sidebar component in Catalog that can sort and filter based on product price and rating
  3. Create the shopping cart

    • Add a redux state that will hold a retrieved shopping cart (bonus points: if you chose to implement #1, grab the signed in user's shopping cart)
    • Add redux actions for adding, updating, and deleting the stored cart
    • Create a shopping cart component with controls, and functional "add to cart" buttons on ProductTile

Here are some criteria we will use to evaluate these features:

  • Understanding of state-based rendering and related logic
  • Stylistic consistency with the source material
  • Organization and readability (comments are welcome!)
  • Bonus points for creativity, QoL improvements, etc., feel free to add some personal touch

No need to worry about mobile styling/reactive design, assume this is a desktop only site/app

Good luck!

Getting Started

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

fake-store's People

Contributors

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