A full stack application, using React for the frontend and NodeJS for services, implements a simple trading marketplace for spacerocks! :) It accepts orders via an REST API via the UI client and publishes realtime updates to all looged in clients as the orderbook state changes.
- Start by cloning the repo locally and navigate to newly created folder:
git clone https://github.com/srdjan/clob.git
cd clob
- Next, for API development change directory to ./api, install dependencies and build the project:
cd api/
npm install
npm run build
- On a succesful build, try running tests:
npm run test:unit
for unit tests, or:
npm run test:accept
for acceptance tests.
For UI development change directory to ./ui, install dependencies and build the project:
cd ui
npm install
npm start
Use two different command shells. First start the services:
[clob]> cd api
[clob/api]> npm start
[clob/api]> cd ../ui
[clob/ui]> npm start