https://github.com/a-khushal/exchange-project
a centralized exchange similar to binance or backpack.exchange
https://github.com/a-khushal/exchange-project
express prisma react redis tailwdindcss typescript
Last synced: 3 months ago
JSON representation
a centralized exchange similar to binance or backpack.exchange
- Host: GitHub
- URL: https://github.com/a-khushal/exchange-project
- Owner: a-khushal
- Created: 2025-06-22T11:39:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-02T15:20:46.000Z (10 months ago)
- Last Synced: 2025-10-02T16:29:31.085Z (10 months ago)
- Topics: express, prisma, react, redis, tailwdindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 130 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Exchange Project
Real-time crypto trading stack: matching engine, HTTP API, and a Next.js UI.
### Structure
- `exchange-backend/`
- `api/`: Bun + Express API (port 3000)
- `engine/`: Bun matching engine (uses Redis)
- `exchange-proxy/`: Next.js frontend
- `order-book/`: TypeScript order book library
### Requirements
- Bun, Node.js 18+, Redis
### Run
API
```bash
cd exchange-backend/api && bun install && bun dev
```
Engine
```bash
cd exchange-backend/engine && bun install && bun dev
```
Frontend
```bash
cd exchange-proxy && npm install && npm run dev
```
### Frontend API target
- Set `PROXY_URL` in `exchange-proxy/app/utils/constants.ts` (e.g. `http://localhost:3000/api/v1`).
### Routes
- `POST /api/v1/order`
- `GET /api/v1/depth`