Git Product home page Git Product logo

pz-cheeseria-juniors's Introduction

Welcome to Patient Zero's Cheeseria Coding Challenge From Oliver Yu

Overview

This is my code test work for Patient Zero.

This project is a cheese seller page, so the customer can buy the cheese and put it into a cart then checkout.

Technology Stack

React, Redux, Redux-saga, Typescript, Material-UI, Styled Component, Cypress

The feature I have made:

  1. Add a dialog for each cheese card, so the user can see the details of each cheese.
  2. Add a checkout button in the cart slider, so user can send the order to the backend after they click the button
  3. Add a purchase history dialog if the user click the recent purchase button
  4. Build UI Test when for #2, the test will automatically add cheeses to the cart and click the checkout button. It will also check the button is disabled if the cart is empty.

Known Issues

  1. The UI is simple and need to be improved makes it looks better.
  2. The backend don't have a real database, curretly the orders will be saved in memory.
  3. The purchase record only save the ID of each cheese, so the user can only see the ID number of the cheese they have purchased before This can be solved if we have a real database, so the cheeses details can be populated by the ID in the database layer.
  4. The application working fine in Google Chrome but not looks good in other browser.
  5. The application don't have responsive design.

Important Scripts

In the project directory, you can run:

npm install

Installs package dependencies (node v14.15.0)

npm start

Builds and runs the app in the development mode.
The browser will be automatically launched under http://localhost:9000. The server backend will start listening on http://localhost:3000

Cypress.io

I have 2 test for the purchase button:

  1. Send order to the backend server successful Check the order is send to the order successfully
  2. does not allow users to send empty order Check the order cannot be send if it is empty
npm install
npm test

Helpful links

React Material UI

pz-cheeseria-juniors's People

Contributors

ltzx2004538 avatar dan-dekel avatar

Forkers

ollie-lee

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.