A WebSocket-based Order Management API following the AsyncAPI 3.0.0 specification.
This project implements a real-time order management system using WebSockets. It supports order placement, cancellation, acceptance, and delivery tracking through various channels.
The system uses channels to organize different message types:
new-orders: Receive new order requestswip-orders: Send order initiation confirmationsto-be-cancelled-orders: Receive cancellation requestscancelled-orders: Send cancellation confirmationsaccepted-orders: Send order acceptance notificationsout-for-delivery-orders: Receive delivery initiation requests
- Node.js (v14 or higher)
- npm
- Docker
npm installnpm run contractTestnpm startThe server will start on ws://localhost:8080
In a separate terminal:
npm testThis will run automated tests demonstrating all API features.