Getting the samples to work on the Azure Node.js SDK
(You probably want to do this in linux)
Install Node.js & NPM
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc . ~/.bashrc mkdir ~/local mkdir ~/node-latest-install cd ~/node-latest-install curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 ./configure --prefix=~/local make install curl http://npmjs.org/install.sh | sh
Download the SDK
npm install azure
Download the dependencies
cd azure-sdk-for-node npm install cd examples/blog npm install cd ../tasklist npm install cd ../../
Update the storage credentials
Update the ./lib/services/serviceclient.js with your credentials.
The examples use the dev storage, so just update the dev storage details to be the live endpoint URIs, and your account and access key.
Run the examples
Start node with either of the following commands:
cd examples/blog node server
or
cd examples/tasklist node server
Then browse to http://localhost:1337/ to try the applications.
Glenn Block 9:42 am on January 6, 2012 Permalink | Log in to Reply
Hi Richard
Nice post!
Instead of having to install all the modules yourself you should be able to just rely on the package.json. Go to the directory where the SDK lives (also for the samples) and just type npm install.
Richard 8:51 pm on January 6, 2012 Permalink | Log in to Reply
Thanks Glenn, I have updated the post accordingly. It makes the script quite a more simple!
Azure: Links, News and Resources (3) « Angel “Java” Lopez on Blog 1:54 pm on February 13, 2012 Permalink | Log in to Reply
[…] Getting the samples to work on the Azure Node.js SDK https://coderead.wordpress.com/2012/01/03/getting-the-samples-to-work-on-the-azure-node-js-sdk/ […]
Node.Js: Links, News And Resources (5) « Angel “Java” Lopez on Blog 12:51 pm on February 24, 2012 Permalink | Log in to Reply
[…] Getting the samples to work on the Azure Node.js SDK https://coderead.wordpress.com/2012/01/03/getting-the-samples-to-work-on-the-azure-node-js-sdk/ […]