Skip to content

metalcamp/node-rest-api

Repository files navigation

Setup

Install dependencies

yarn install

Start postgres and redis

sudo docker-compose up -d postgres redis

Run

Start server

yarn start

Start RSS parser / publish RSS content to channels

yarn start-rss

Start publish worker / redis listener

yarn start-publish

Tests

Run all tests

yarn test

Run unit tests

yarn unit

Run integration tests

yarn integration

TODO

  • implement winston logger
  • implement client subscriber (client prints request body to console)
  • support glob style pattern channel matching
  • implement 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

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy