Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Dust.js/Node.js webapp that demonstrates sample usages of the ESPN API.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
models
public
templates
.gitignore
Procfile
README.md
package.json
web.js

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.