Install dependencies
yarn install
Start postgres and redis
sudo docker-compose up -d postgres redis
Start server
yarn start
Start RSS parser / publish RSS content to channels
yarn start-rss
Start publish worker / redis listener
yarn start-publish
Run all tests
yarn test
Run unit tests
yarn unit
Run integration tests
yarn integration
implement winston loggerimplement client subscriber (client prints request body to console)support glob style pattern channel matchingimplement publish worker (worker publishes messages published to channel to its subscribers)setup and configure jest with ts-jest- implement tests
- refactor error mechanism
- implement BZPOPMAX and replace redis.publish with redis.zset to avoid sending duplicate messages