The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):
npm install snowshoestamp
SnowShoeStamp = require 'snowshoestamp'
auth = new SnowShoeStamp('APIKEY', 'APISECRET')
# express 4 requires explicit wiring up of bodyParser components
bodyParser = require 'body-parser'
app.use bodyParser.urlencoded
# snowshoe api callback
app.all '/snowshoecallback', (req, res) ->
auth.validateStamp req.body, (response) ->
# do something
app.get '/stampscreen', (req, res) ->
# redirect to stamp screen
auth.stampScreen(req, res)
This command needs to be ran first if CoffeeScript is not installed on your system
- run
sudo npm install -g coffee-script
Install all of the dependencies
- run
npm install
The following command will watch and compile Coffeescript
- run
cake dev