Skip to content

ir4y/asteroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asteroid - Websocket RPC and Pub/Sub erlang framework.

Asteroid implement rpc interface for websocket.
You can create erlang rps endpoints and python rpc endpoints. Python rpc endpoint is a celery task. Asteroid call python rpc endpoint through rabbitmq.

Run erlang server

You need to install rebar from https://github.com/rebar/rebar Then compile and run project:

rebar get-deps  
rebar compile 
./start.sh

Run celery worker and tests

You need to create virtualenv for python part of application(celery worker and tests)

virtualenv /tmp/asteroid_ve #or other path for your chouse
source /tmp/asteroid_ve/bin/activate

Then you need to setup requirements

pip install -r tests/requirements.txt

Run celery worker

cd test
./start_celery.sh

Run tests

cd test
py.test

Javascript example

First you need install bower packages

npm install -g bower
cd priv/
bower install

Next open http://localhost:8008/static/index.html in your browser and test Add and Add delay rpc calls.

About

Websocket RPC and Pub/Sub erlang framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published