Skip to content
No description or website provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets
lib
public
.gitignore
README.md
app.js
client.js
package.json

README.md

Ekomobi Live Voting Endpoint

Integration into ekomobi: use the ekowidget directive once, and the starvote/raing pair where needed.

<div class="ekowidget"  data-injectjs="http://dirac.imetrical.com:3000/js/integrate.js" />
<div class="ekowidget"  data-injectjs="http://ax-vote.cloudfoundry.com/js/integrate.js" />
<div class="starvote" />
<div class='rating'/>

Initial deployment to cloudfoundry

When it's up, you can find it here

# if not yet created... (add mongo later)
vmc push ax-vote

# to push an update
vmc update ax-vote

Boilerplate

Start from HTML5 mobile boilerplate index.html. Do not use it's build system, will try to minimise with express/connect.

  • index.html
  • add jQuery mobile, downgrade to jQ 1.6.4
  • icons and startup
  • js
  • mobile-boookmark-bubble
  • crossdomain
  • appcache

Transport and RPC

curl command to invoke jsonrpc service

curl -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "zing", "params": [42], "id":2 }' http://localhost:3000/jsonrpc

node client to invoke jsonrpc-service

node client.js

node client to invoke dnode-service (local-only)

Something went wrong with that request. Please try again.