Skip to content

hanstanawi/order-book

Repository files navigation

Order Book App

Overview

A simple app built using React.js, TypeScript, and TailwindCSS to track order book changes. Order book quotes data are provided by BTSEcom using Websocket.

Technologies

State Management

For state management, I use Redux Toolkit that provides out of the box Redux setup to manage global state of the app. Each features' state and reducers are managed by slices which is one of the main features of Redux Toolkit.

Usage

Install packages

yarn

or

npm install

Run in Development Mode (Site will run in localhost:3000)

yarn start

or

npm start

Directory Structure

Using features-based directory structure. Features-based directories separate specific features related components from generic UI components.

.
├── public/ React.js public dir, used for storing static assets.
└── src/
    ├── apps/ contains Redux store
    │   └── store.ts
    ├── components contains global components like layout
    ├── features/ contains every features on the app
    │   ├── quotes/
    │   │   ├── components
    │   │   ├── helpers
    │   │   ├── slices
    │   │   └── constants.ts
    │   └── trade-history/
    │       ├── components
    │       ├── slices
    │       └── constants.ts
    ├── helpers contains global helper functions
    ├── hooks contains global hooks
    ├── App.tsx
    ├── index.ts
    └── index.css

App Interface

Order Book Interface

About

Real-time order book stock data tracker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published