Skip to content

Instantly share code, notes, and snippets.

@shamrin
Created May 26, 2016 15:23
Show Gist options
  • Save shamrin/4c36c2e7541bd2b65570e9e66ee7dd6e to your computer and use it in GitHub Desktop.
Save shamrin/4c36c2e7541bd2b65570e9e66ee7dd6e to your computer and use it in GitHub Desktop.
$ git clone https://github.com/jdubray/sam-safe
$ npm install
npm WARN Invalid name: "sam-safe middleware with blog sample harness"
…
$ # Edit package.json, changing the name field to "sam-safe" in package.json (my npm doesn't like spaces)
$ npm install
$ npm start
> sam-safe@1.0.0 start /Users/user/src/sam-safe
> node server-model.js

{ init: [Function],
  present: [Function],
  edit: [Function],
  save: [Function],
  delete: [Function],
  cancel: [Function],
  intents: { edit: 'edit', save: 'save', delete: 'delete', cancel: 'cancel' } }
[INFO]     : 1464275768965 : new step        :{"stepid":0,"actions":[]}
registering app on port: 5425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment