Skip to content

This service listens in on Postgres notifications and pushes confirmation response to SNS topics based on Source network type

Notifications You must be signed in to change notification settings

urbanriskmap/cognicity-notification-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Later versions of cognicity-server handle notifications internally.

cognicity-notification-service

This service listens in on Postgres notifications and pushes confirmation response to SNS topics based on Source network type

Install

npm install

Run

node app.js

Configuration

Save a copy of sample.env as .env in local directory with appropriate credentials

  • MAP: Riskmap's Map URL
  • ACCOUNTID: AWS Account ID
  • AWS_REGION: AWS Region where SNS topics were created
  • PG_CON: Postgres database connection string

Misc Notes

  • AWS credentials are stored in bash_profile
  • Grasp "username" is userID/senderID from source networks to allow replies in conversation
  • Errors are logged to console, but not returned to user currently

About

This service listens in on Postgres notifications and pushes confirmation response to SNS topics based on Source network type

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •