1.0.0 • Published 1 year ago
live-product-feed v1.0.0
App realtime to alert about new products in the feed
Install all dependencies
npm iRun websocket server
npm run socketRun API server
npm run apiRun the application NEXTJS with
npm run consumerTry conection client
npm run testAPI Endpoints
| Method | Route | Description | Params |
|---|---|---|---|
POST | /events/product | Receives new product notifications and emits a WebSocket event. | product_id: NUMBER |
GET | /products | Returns the list of products (for clients that need to fetch data). | Nothing |
1.0.0
1 year ago