1.0.0 • Published 5 months ago
live-product-feed v1.0.0
App realtime to alert about new products in the feed
Install all dependencies
npm i
Run websocket server
npm run socket
Run API server
npm run api
Run the application NEXTJS with
npm run consumer
Try conection client
npm run test
API 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
5 months ago