Georgette / nodezoo-info

nodezoo.com micro-service handling module info

Home Page:http://nodezoo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodezoo

nodezoo-info

nodezoo.com micro-service handling module. Please see the main repo for more details.

Install

  1. clone this repo into a root /nodezoo folder.
  2. run npm install

Starting

To start simply run,

npm start

Tagging and Logs

To tag your service and set up logs simply pass the relevant switches on start,

npm start -- --seneca.options.tag=nodezoo-info --seneca.log.all

Inbound Messages

  • role:info,cmd:get - request module name and description

Outbound Messages

  • role:info,res:part - respond with this information

Running with Curl

Any of the messages above can be run using curl in the following format in the command line

  • to check that info_cache has items:
curl http://localhost:44001/act  -H "Content-Type: application/js -d '{"role":"info","cmd":"get","name":"underscore"}'
  • to check the headers:
curl http://localhost:44001/act  -H "Content-Type: application/json" -v -d '{"role":"info","cmd":"get","name":"underscore"}'

Contributing

The NodeZoo org encourages open and safe participation.

If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.

License

Copyright (c) 2014 - 2016, Richard Rodger and other contributors. Licensed under MIT.

About

nodezoo.com micro-service handling module info

http://nodezoo.com

License:MIT License


Languages

Language:JavaScript 98.5%Language:Shell 1.5%