cd server
yarn install
yarn start
cd ui
yarn install
yarn start
- open
http://localhost:3002
Since DB is not implemented in this task, the initial state of mock orders comes from:
server/db/mock-orders-obj.js
Note:
- The state is reset to default only when server restart
- JS file is used for easiness of manipulation
- All operations are async, to simulate requests to DB
- FrontEnd: If order is confirmed with the same amount as previous one (and amount is 1 character: between 1-9),
then [buy] and [sell] buttons are disabled until you blur any other element
It seems to be a bug of
react-hook-form
library - FrontEnd: findDOMNode is deprecated in StrictMode - error is thrown in console when snackbar is opened
It a bug of
react-simple-snackbar
library itself - BackEnd: Order amount is not taken into account when closing matching buy<=>sell orders: It means that order can't be filled partially - the system will ignore differences in sizes