Skip to content

Commit 49dfb02

Browse files
committed
Get ready to publish main lib version 1.0.0
1 parent 7a519db commit 49dfb02

File tree

4 files changed

+48
-14
lines changed

4 files changed

+48
-14
lines changed

README.md

+39-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
flexbench
22
======================
3-
[![Build Status](https://travis-ci.org/iskitsas/http-traffic-simulator.svg?branch=developer)](https://travis-ci.org/iskitsas/http-traffic-simulator)
3+
[![Build Status](https://travis-ci.org/flexivian/flexbench.svg?branch=develop)](https://travis-ci.org/flexivian/flexbench)
44

55
A nodejs http traffic simulator that scales.
66

@@ -10,13 +10,16 @@ Forked from http-traffic-simulator
1010
==================================
1111
Forked repo: https://github.com/iskitsas/http-traffic-simulator
1212

13-
Installation
14-
============
13+
Prerequisites
14+
=============
15+
- install node.js/npm
1516

16-
$ npm install flexbench
1717

1818
Quick start
1919
===========
20+
21+
- Create a `flex-test.js` file with the following content:
22+
```
2023
var trafficSimulator = require('flexbench');
2124
function run(){
2225
trafficSimulator.testDuration(5);//-1 for infinite run
@@ -52,7 +55,38 @@ Quick start
5255
}
5356
5457
run();
55-
58+
```
59+
- Install flexbench dependency:
60+
```
61+
npm install flexbench
62+
```
63+
64+
- Run `flex-test.js`:
65+
```
66+
node flex-test.js
67+
```
68+
69+
# How to run examples after cloning the project locally
70+
71+
Inside the folder `example` you can find various examples. You can copy-paste and use them like in the Quick start guide, or you can clone the whole project locally and link/install flexbench locally (using latest source code), without installing it from public npm repository.
72+
73+
After cloning the project from github, navigate to project and run:
74+
75+
```
76+
npm link flexbench
77+
```
78+
79+
Then navigate to `example` folder and run any example you want:
80+
eg.
81+
```
82+
cd example
83+
node count-simple-request.js
84+
```
85+
86+
If you want to uninstall just unlink it like this:
87+
```
88+
npm unlink flexbench
89+
```
5690

5791
Features
5892
========

desktop-app/package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop-app/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"bugs": {
1010
"url": "https://github.com/flexivian/flexbench/issues"
1111
},
12-
"homepage": "https://github.com/flexivian/flexbench/blob/develop/desktop-app/README.md",
12+
"homepage": "./",
1313
"dependencies": {
1414
"@testing-library/jest-dom": "^5.16.4",
1515
"@testing-library/react": "^13.3.0",
@@ -38,7 +38,6 @@
3838
"electron": "wait-on tcp:3000 && electron .",
3939
"build:installer": "electron-builder -c.extraMetadata.main=build/main.js"
4040
},
41-
"homepage": "./",
4241
"build": {
4342
"productName": "Flexbench",
4443
"appId": "com.flexivian.flexbench",
@@ -97,4 +96,4 @@
9796
"wait-on": "^6.0.1",
9897
"webpack-cli": "^4.10.0"
9998
}
100-
}
99+
}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)