This example will give you an example of a very basic project. It will show you how to run all parts of the ActiveStack and you’ll be able to watch ActiveStack synchronize your javascript clients as you add, remove and change the colors of some blocks.
- Node >= 0.10
- Java SDK >= 1.5
- MySQL >= 5.0
- Redis >= 2.4
- RabbitMQ v2.8
> git clone git@github.com/ActiveStack/HelloWorld.git
> cd HelloWorld
> git submodule init
> git submodule update
Depending on how you have MySQL, Redis and RabbitMQ servers installed you might do this differently but here is a good faith best guess:
# New term window
> mysqld
# New term window
> redis-server
# New term window
> rabbitmq-server
> cd gateway
> npm install
> node src/server.js resources/no_ssl.properties
In another bash window/tab
> cd helloworld/worker
> mvn package
> java -jar target/helloworld_worker-0.0.1.one-jar.jar
In yet another bash window/tab
> cd helloworld/client
> http-server 8081
- Open up two different browsers to http://localhost:8081 and login with a google account
- Add blocks, remove blocks and change the block color by clicking on them.
- Cool how it syncs up in real time right!?