Skip to content

ActiveStack/helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World

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.

Installation

0. Prerequisites

  • Node >= 0.10
  • Java SDK >= 1.5
  • MySQL >= 5.0
  • Redis >= 2.4
  • RabbitMQ v2.8

1. Clone the project repository

> git clone git@github.com/ActiveStack/HelloWorld.git

2. Init and install submodules

> cd HelloWorld
> git submodule init
> git submodule update

Start it!

0. Start Prereqs

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

1. Start the Gateway Server

> cd gateway
> npm install
> node src/server.js resources/no_ssl.properties

2. Start the Worker process

In another bash window/tab

> cd helloworld/worker
> mvn package
> java -jar target/helloworld_worker-0.0.1.one-jar.jar

3. Start the Client Web Server

In yet another bash window/tab

> cd helloworld/client
> http-server 8081

Use it!

  • 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!?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published