Skip to content

Commit 26ce60c

Browse files
committed
chore: command to run Kafka consumers in dev mode
1 parent d610a38 commit 26ce60c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"idleTimeout": 1000
3737
},
3838
"kafkaConfig": {
39-
"hosts": "localhost:9092"
39+
"url": "localhost:9092"
4040
},
4141
"analyticsKey": "",
4242
"VALID_ISSUERS": "[\"https:\/\/topcoder-newauth.auth0.com\/\",\"https:\/\/api.topcoder-dev.com\"]",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"migrate:es:metadata": "./node_modules/.bin/babel-node migrations/helpers/indexMetadataDirectly.js",
1818
"prestart": "npm run -s build",
1919
"start": "node dist",
20-
"startKafkaConsumers": "npm run -s build && node dist/index-kafka.js",
2120
"start:dev": "NODE_ENV=development PORT=8001 nodemon -w src --exec \"babel-node src --presets es2015\" | ./node_modules/.bin/bunyan",
21+
"startKafkaConsumers": "npm run -s build && node dist/index-kafka.js",
22+
"startKafkaConsumers:dev": "NODE_ENV=development nodemon -w src --exec \"babel-node src/index-kafka.js --presets es2015\" | ./node_modules/.bin/bunyan",
2223
"test": "NODE_ENV=test npm run lint && NODE_ENV=test npm run sync:es && NODE_ENV=test npm run sync:db && NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --timeout 10000 --require babel-core/register $(find src -path '*spec.js*') --exit",
2324
"test:watch": "NODE_ENV=test ./node_modules/.bin/mocha -w --require babel-core/register $(find src -path '*spec.js*')",
2425
"seed": "babel-node src/tests/seed.js --presets es2015",

0 commit comments

Comments
 (0)