First run the Redis server with the following command:
cd ./docker && docker compose up -d
Then run both NestJS applications with the following commands:
npm run start:dev
Publisher runs on port 3000 and subscriber runs on port 3001.
Publisher exposes a POST endpoint at http://localhost:3000/ and subscriber listens to the channel events.
Subscriber exposes:
- SSE route at http://localhost:3001/sse which sends the received message to the client.