Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Getting Started : Installing Pods

cloudspark edited this page · 16 revisions

If you don't know what a Pod is in the Bipio world, learn about it

Generally the pattern for installing a pod is to manually request it via npm from the bipio server root, like so :

$ npm install bip-pod-email
bip-pod-email@0.0.3 node_modules/bip-pod-email
├── pkginfo@0.2.3
├── ejs@0.7.1
└── nodemailer@0.5.2 (simplesmtp@0.3.8, mailcomposer@0.2.1)

Once installed, enable it!

$ ./tools/pod-install.js -a email
Wrote to config/default.json

By default, the installer will look for bip-pod-{pod name} under node_modules which satisfy the pod interface for install. It will fall back to a literal module name if bip-pod-{pod name} can not be found. ie: installing something like my-custom-pod will also work, if it resides under the bipio server node_modules directory.

The initial install of a pod will populate your environment config file with a sparse 'default' configuration. Check in the 'pods' container and configure where necessary before restarting the server.

$ cat config/default.json
"pods": {
    "email": {
        "mailer": {
            "host": "localhost",
            "port": 25

If you see an exception along the lines of

TypeError: OAuthStrategy requires a consumerKey option

.. when installing, it means that the environment config (config/{environment}.json) has not been set, so fix it by registering your application with the Pod's OAuth provider and plugging the client id+secret into the pods section of config before retrying the install. Be sure to never commit your application secrets to any kind of repository!

Once the server has restarted, confirm the pod has been registered by calling the 'describe' RPC http://localhost:5000/rpc/describe/pod/{optional pod name} in your browser. This will describe whether the pod has been installed, its metadata, schemas, authentication requirements and any renderers.

      "icon" : "/static/img/pods/email.png"
            "description":"Send an Email",
            "description_long":"Use to forward email messages to a chosen recipient (requires recipient verification)",
                     "description":"Email Address (eg:",
                           "msg":"Invalid Email"


                     "description":"SMTP Response Code"
                     "description":"SMTP Response Message"
                     "description":"Message Subject"
                     "description":"HTML Message Body"
                     "description":"Text Message Body"
                     "description":"Reply To"
Something went wrong with that request. Please try again.