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.
- Host: GitHub
- URL: https://github.com/rtasalem/busgres-demo
- Owner: rtasalem
- Created: 2024-04-25T21:58:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-02T08:21:48.000Z (about 1 year ago)
- Last Synced: 2025-01-26T02:18:29.833Z (8 months ago)
- Topics: azure, postgresql, service-bus
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/busgres
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```