This repository has been archived by the owner on Jun 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
40 lines (40 loc) · 1.94 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "node-kafka-rest",
"version": "0.15.0",
"main": "index.js",
"description": "kafka consumer & producer via HTTP REST",
"scripts": {
"start": "node index.js",
"lint": "eslint .",
"fix": "eslint --fix .",
"kafka:start": "./kafka-setup/start.sh",
"kafka:stop": "./kafka-setup/stop.sh",
"kafka:logs": "docker-compose --file ./kafka-setup/docker-compose.yml logs -f",
"kafka:log": "docker logs kafkasetup_kafka-rest_1 -f",
"kafka:build": "docker-compose --file ./kafka-setup/docker-compose.yml build",
"kafka:rick": "yarn kafka:stop && yarn kafka:build && yarn kafka:start && yarn kafka:generate-data && yarn kafka:log",
"kafka:producer": "docker exec -it kafkasetup_kafka_1 bash -c 'kafka-console-producer.sh --topic=test --broker-list=localhost:9092'",
"kafka:consumer": "docker exec -it kafkasetup_kafka_1 bash -c 'kafka-console-consumer.sh --topic=test --bootstrap-server=localhost:9092 --from-beginning'",
"kafka:generate-data": "while IFS= read line; do echo \"echo '$line' | kafka-console-producer.sh --topic=test --broker-list=localhost:9092 --property='parse.key=true' --property='key.separator=#' \" | docker exec -i kafkasetup_kafka_1 bash -; done< ./kafka-setup/test-data.txt",
"test": "npm run lint && istanbul cover _mocha -- -R spec test/int/* && istanbul check-coverage --statements 50",
"kafka:load-test": "./kafka-setup/performance-test.sh",
"yarn:openssl": "LDFLAGS='-L/usr/local/opt/openssl/lib' CPPFLAGS='-I/usr/local/opt/openssl/include' yarn"
},
"repository": "[email protected]:nodefluent/node-kafka-rest.git",
"author": "Chris Froehlingsdorf <[email protected]>",
"license": "MIT",
"dependencies": {
"bluebird": "^3.5.5",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"debug": "^4.1.1",
"express": "^4.17.1",
"sinek": "^7.29.3",
"zookeeper": "^4.1.1"
},
"devDependencies": {
"eslint": "^5.16.0",
"istanbul": "^0.4.5",
"mocha": "^6.1.4"
}
}