Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
Labels
bonus Consider tasks with this tag as an "extra credit" assignment to the challenge. challenge task

Comments

@Fleury14
Copy link
Collaborator

This feature request is on the difficult side and is considered "extra credit". It is intended for advanced developers to demonstrate how they would tackle a more difficult problem.

Current Functionality

The current app only displays orders when a fetch is specifically called from the application. If someone adds/deletes/edits orders in the database through a method other than the app (such as Postman), the app does not reflect any changes in the order.

Desired functionality

In a real world application, an app like this would likely be deployed in several different locations that share the same database. For example a cashier would enter in an order and then this order would display on a make line for the cooks to make.

An endpoint has been created to simulate this sort of functionality on the server end. Hitting the /live-mode endpoint with a POST request triggers an operation on the server where orders are added and deleted at regular intervals. This interval can be specified by including { time: x } in the request body where x is the number of seconds. If no time is specified, the interval between orders is 5 seconds.

The desired functionality is to have these orders display on the front end as they are being added/deleted on the back end.

@Fleury14 Fleury14 added challenge task bonus Consider tasks with this tag as an "extra credit" assignment to the challenge. labels Dec 13, 2021
JimOtermat2 pushed a commit to JimOtermat2/bitwise-react-challenge-project that referenced this issue Aug 14, 2022
Auto-update the View Orders page every 5 seconds

Fixes Shift3#12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bonus Consider tasks with this tag as an "extra credit" assignment to the challenge. challenge task
Projects
None yet
1 participant