Publisher Server registers subscribers and publish messages to available topics. It also keeps track of topic -> subscribers
within the system
Click here to view the API Documentation
- Nest - A framework for building efficient, scalable and modular Node.js server-side applications
- PostgreSQL - A powerful, open source object-relational database system
- TypeORM - Typescript based ORM
# clone the repo
$ git clone https://github.com/Felglitzzz/pubsub-example.git
# cd to publisher server
$ cd publisher-server/
# Install Dependencies
$ yarn install
# Create .env file and pattern it after .env-sample file. Ensure db credentials are added to .env in this step
$ touch .env
# Run migration
$ yarn migrate
# Run the application
yarn start:dev
# run unit tests
$ yarn test
# run unit tests with coverage
$ yarn test:coverage