Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Dust.js/Node.js webapp that demonstrates sample usages of the ESPN API.

branch: master
README.md

ESPN API Sample (Dust.js/Node.js)

Developing

Install node.js to run Node. Install foreman to run this Procfile-based project.

$ git clone https://github.com/jaxzin/api-samples-js-dust-node.git
$ cd api-samples-js-dust-node
$ npm install
$ foreman start

Troubleshooting

Use node-inspector

$ gem install node-inspector
... start node with --debug switch ...
$ node-inspector &
... open localhost:8080 ...

Running on Heroku

Assumes your local environment is already:

$ git clone http://github.com/jaxzin/api-samples-js-dust-node.git
$ cd api-samples-js-dust-node
$ heroku create --stack cedar
$ git push heroku master
... wait for it to push and launch ...
$ heroku ps:scale web=1
$ heroku config:add NODE_ENV=production
$ heroku config:add espn_api_key=[your app key from developer.espn.com]
... wait for it to add the config vars and restart ...
$ heroku open

Light Reading

Credit

Heavily based on Lilac

Something went wrong with that request. Please try again.