An open API service indexing awesome lists of open source software.

https://github.com/rtasalem/busgres-demo

Demo project to test functionality of the Busgres Node.js package.
https://github.com/rtasalem/busgres-demo

azure postgresql service-bus

Last synced: 7 months ago
JSON representation

Demo project to test functionality of the Busgres Node.js package.

Awesome Lists containing this project

README

          

# Busgres Demo

This is a demo project to test the functionality of the [Busgres](https://www.npmjs.com/package/busgres) NPM package I created which saves messages sent and received from an Azure Service Bus topic into a PostgreSQL database.

## Documentation

Full details on how this project was set up to utilise the Busgres package is avaiable in the [documentation](https://github.com/rtasalem/busgres-demo/blob/main/DOCS.md).

## Prerequisites

- Azure Service Bus Namespace connection string
- Azure Service Bus queue
- PostgreSQL server

## Environment Variables

| Variable | Description |
| -------- | ----------- |
| `SB_CONNECTION_STRING` | Service Bus namespace connection string. |
| `SB_QUEUE` | Name of Service Bus queue. |
| `PG_USERNAME` | Username of PostgreSQL database. |
| `PG_DATABASE` | Name of PostgreSQL database. |
| `PG_HOST` | Host of PostgreSQL server. |
| `PG_PORT` | Port of PostgreSQL server. |

## Getting Started

Once the PostgreSQL database and table has been set up, run the following command to start up the project:

```
nodemon app
```