This is a demo project to test the functionality of the Busgres NPM package I created which saves messages sent and received from an Azure Service Bus queue into a PostgreSQL database.
Full details on how this project was set up to utilise the Busgres package is avaiable in the documentation.
- Azure Service Bus Namespace connection string
- Azure Service Bus queue
- PostgreSQL server
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. |
Once the PostgreSQL database and table has been set up, run the following command to start up the project:
nodemon app