https://github.com/circuit/node-load-circuit
Example node app to load Circuit system
https://github.com/circuit/node-load-circuit
Last synced: 8 months ago
JSON representation
Example node app to load Circuit system
- Host: GitHub
- URL: https://github.com/circuit/node-load-circuit
- Owner: circuit
- Created: 2015-12-19T01:02:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T14:34:25.000Z (almost 7 years ago)
- Last Synced: 2025-02-09T20:35:24.564Z (over 1 year ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-load-circuit
Create conversations and messages using the [circuit node SDK](https://circuitsandbox.net/sdk/index.html).
Useful to load the local Circuit system for load testing.
## Requirements ##
* [node 4.x](http://nodejs.org/download/)
* [circuit module](https://circuitsandbox.net/sdk/)
## Getting Started ##
```bash
git clone https://github.com/yourcircuit/node-load-circuit.git
cd node-load-circuit
cp config.json.template config.json
```
Edit config.json
* Add "admin email" and "admin password" to run the example.
You can request a circuit account at the [Circuit Developer Community Portal](https://www.yourcircuit.com/web/developers).
* Change the number of conversations to generate, the number of post & replies, and the percentage of likes and flags to set.
Run the sample application with
```bash
npm install
node server.js
```
## Output ##
```bash
>./start.sh
01:08:38.306Z INFO app: Logged on as admin@unify.com
01:08:38.417Z INFO app: Created 4 open conversation(s)
01:08:38.448Z INFO app: Created 8 group conversation(s)
01:08:39.046Z INFO app: Created 56 text message(s)
01:08:39.473Z INFO app: Created 49 replies
01:08:39.641Z INFO app: Liked 34 message(s)
01:08:39.780Z INFO app: Flagged 11 message(s)
01:08:39.780Z INFO app: Done. Press Ctrl-C to exit
```