Skip to content

Install guide

Alboaie Sînică edited this page Jun 14, 2016 · 12 revisions
  1. Install Node.js

  2. Install and run a Redis server (localhost:6379)

  3. Get SwarmESB (with git) in a folder, ex : c:\work\SwarmESB

  4. if you are on a linux system run quickrun.sh in that folder. Go to step 9. Otherwise run steps 5,6,7,8

  5. Go in C:\work\SwarmESB and do:

    npm install

  6. Set environment variable SWARM_PATH to your SwarmESB installation (ex. c:\work\SwarmESB) Set environment variable SWARM_NODE_TYPE to "demo"

  7. [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.
    
  8. 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

  9. Now you have a working version. Go to localhost:8081 and check the dashboard Initial user and password: admin and swarm

  10. 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.

  1. It works. good. Now you have an idea about swarms. Great! Send me an email ([email protected]) with your opinions, improvements ideas, dislikes, etc.

  2. 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.

  3. Do your own projects with swarms! [OPTIONAL] move node_modules outside SWARM_PATH folder and set NODE_PATH variable to its place

Clone this wiki locally