pub-sub-seeder
v1.0.7
Published
Simple seeder for pub-sub
Maintainers
Readme
PubSub Seeder
PubSub Seeder written in JS as CLI command for extreme convenience usage

Install
npm install pub-sub-seeder OR globally
npm install -g pub-sub-seederOptionally
gcloud components install pubsub-emulatorRequired envs
For emulator
export PUBSUB_PROJECT_ID=test
export PUBSUB_EMULATOR_HOST=localhost:8085For GCP pub-sub
export PUBSUB_PROJECT_ID=test
export PUBSUB_CLIENT_EMAIL=
export PUBSUB_PRIVATE_KEY=Usage
./node_modules_location/pub-sub-seeder/bin/seed.js topic-subs.jsonor if installed globally
pub-sub-seed topic-subs.json
Example file
[
{
"topic": "Topic1",
"subscriptions": ["SubForTopic1"]
},
{
"topic": "Topic2",
"subscriptions": ["SubForTopic2", "SecondSubForTopic2"]
}
]
