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.
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.
Install packages
yarnor
npm installRun in Development Mode (Site will run in localhost:3000)
yarn startor
npm startUsing 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
