Skip to content

greybax/order-data-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Order Data Client App

This is a React/Typescript Client app. I've built it for Order Data Challenge.

I'll not share server side code here (which is based on nodejs and socket.io), but I'll share a data model which this client is working with.

The data

The data sent by the server will consist of a list of order objects. Order objects have the following format:

{
    "customer": "Carla Garner",
    "destination": "61109 Alan Motorway, North Corey, CA 92789",
    "event_name": "CREATED",
    "id": "d0791ce1",
    "item": "Caesar salad",
    "price": 4692,
    "sent_at_second": 6
}

What this client is doing?

  • Getting data from server in real time via socket.io
  • Updates entities with same ID on the latest ones
  • Converts prices from pennys to dollars in Price column
  • Ability to search by Price column in USD
  • Has found/total items count

image

How to start

npm install && npm start

Check out my blog post: https://alfilatov.com/posts/frontend-dto-challenge/

P.S. feel free to reuse it as you want

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published