Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.49 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.49 KB

Publisher Server

Test Coverage Maintainability

Description

Publisher Server registers subscribers and publish messages to available topics. It also keeps track of topic -> subscribers within the system

Hosted API Link

Click Here

Swagger Documentation

Click here to view the API Documentation

Tools

  • 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

Running the Publisher Server Locally

# 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

Test

# run unit tests
$ yarn test

# run unit tests with coverage
$ yarn test:coverage