live-product-feed
v1.0.0
Published
App realtime to alert about new products in the feed
Maintainers
Readme
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 |
