node-apac Quick Start
Node.js
Wednesday, 11 August 2010 13:41

node-apac is a client library for accessing the Amazon Product Advertising API, written in JavaScript for Node.js. Here is the set of commands to use to get going with node-apac and get the example script working. These commands are intended to be run on a fresh install of Ubuntu Server 10.04, so I will walk you through installing everything you need.

sudo apt-get update #helps to make sure next command is successful
sudo apt-get install git-core g++ libssl-dev curl
git clone http://github.com/ry/node.git
cd node
sudo ./configure
sudo make
sudo make install
curl http://npmjs.org/install.sh | sudo sh
sudo npm install apac@latest
wget http://github.com/dmcquay/node-apac/raw/master/examples/example-item-search.js
#now update awsId, awsSecret & assocId in example-item-search.js
node example-item-search.js

blog comments powered by Disqus