Skip to content

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.
JavaScript
branch: master
Failed to load latest commit information.
lib Added debug statements for heroku
models Removed dead code.
public Added debug statements for heroku
templates
.gitignore
Procfile Added Heroku Procfile for running node.js.
README.md Fixed formatting in README.
package.json
web.js Added welcome screen.

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.