Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c3790cc95e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 60 lines (39 sloc) 1.923 kb

Mirawatt Server

Initial deployment to nodejitsu

When it's up, you can find it here

jitsu deploy

Initial deployment to cloudfoundry

When it's up, you can find it here

  • or - here (mw-spec)

    if not yet created... (add mongo later)

    vmc push mirawatt

    to push an update

    vmc update mirawatt

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

Timezones

Found this binding to time.h node-time.

Todo

Transport and RPC

curl command to straight POST

curl -X POST -H "Content-Type: application/json" -d @../mirawatt-client/example.json http://localhost:3000/incoming/daniel

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 curl -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "get", "params": ["001DC9103902"], "id":3 }' http://mirawatt.cloudfoundry.com/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.