-
Notifications
You must be signed in to change notification settings - Fork 34
Install guide
-
Install Node.js
-
Install and run a Redis server (localhost:6379)
-
Get SwarmESB (with git) in a folder, ex : c:\work\SwarmESB
-
if you are on a linux system run quickrun.sh in that folder. Go to step 9. Otherwise run steps 5,6,7,8
-
Go in C:\work\SwarmESB and do:
npm install
-
Set environment variable SWARM_PATH to your SwarmESB installation (ex. c:\work\SwarmESB) Set environment variable SWARM_NODE_TYPE to "demo"
-
[OPTIONAL] Check and modify your configuration (%SWARM_PATH%\etc\demo)
Hint: you can have multiple configurations in etc folder. The value of the environment variable SWARM_NODE_TYPE will choose the active configuration.
-
Run SwarmESB from our launcher that runs and monitor the adapters
node adapters/demoLaunch.js
//demoLaunch will be starting multiple adapters based on etc/config configuration -
Now you have a working version. Go to localhost:8081 and check the dashboard Initial user and password: admin and swarm
-
Run tests from the dashboard or from test folder From the test folder you can run a single test like this: node StartSwarmTest.js
Warning: do not forget about setting SWARM_NODE_TYPE in the environment where you run the test or you get errors about etc/config.
-
It works. good. Now you have an idea about swarms. Great! Send me an email ([email protected]) with your opinions, improvements ideas, dislikes, etc.
-
Create new swarms and adapters. Add them in the etc configurations. You can create multiple $SWARM_NODE_TYPE configurations for multiple setups and you need a file like etc/demo for each configuration.
-
Do your own projects with swarms! [OPTIONAL] move node_modules outside SWARM_PATH folder and set NODE_PATH variable to its place