Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a library on npmjs #14

Open
dagmawig opened this issue Sep 1, 2024 · 1 comment
Open

Create a library on npmjs #14

dagmawig opened this issue Sep 1, 2024 · 1 comment
Assignees
Labels

Comments

@dagmawig
Copy link
Collaborator

dagmawig commented Sep 1, 2024

  • Create the message system as an npm package on npmjs.
  • Library would have a subscribe, publish and fetch functionality for message.
  • Library would potentially include a script to set up postgres DB to prepare for message dispatch and subscription.
@dagmawig dagmawig self-assigned this Sep 1, 2024
@dagmawig
Copy link
Collaborator Author

dagmawig commented Sep 1, 2024

First version of library published at https://www.npmjs.com/package/pg-sub-noti
So far the library expects the postgres DB to already be set up to have a table under a schema.
It also expects the table to have an insert trigger that calls a function on the schema that executes pg notify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant