rbergman / tendril-connect-demos

Home Page:https://dev.tendrilinc.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This is a sample Node.js application for demoing interactions with the Tendril Connect HTTP APIs. It is a work in progress, so many areas are incomplete or less functional than might otherwise be desired.

For the lazy, you may be able to find the app running here.

Installation

First clone the repo:

git clone git@github.com:TendrilDevProgram/tendril-connect-demos.git

Then, with Node.js v0.6.x:

cd tendril-connect-demos
npm install -g coffee # if not already installed
npm install

Next:

cp config/env.coffee.sample config/env.coffee

Edit env.coffee to configure a custom session secret for your app. This can be any secret pass phrase you deem appropriate.

Then at Tendril's developer site, create an app to acquire an OAuth2 app id and key. Further edit env.coffee to add your app id and secret. At this point you should be ready to start the server like so:

./server [server port]

Or:

coffee ./app/server.coffee [server port]

The server will start on port 3001, unless you optionally specify your own port in the commands above.

About

https://dev.tendrilinc.com

License:MIT License


Languages

Language:JavaScript 56.9%Language:CoffeeScript 43.0%Language:Shell 0.0%