NodeJS http://rickgaribay.net/category/65.aspx NodeJS en-US Rick G. Garibay rickgaribay@hotmail.com Subtext Version 1.9.5.176 Visual Studio Live Redmond &ndash; 8/18 to 8/21 http://rickgaribay.net/archive/2014/08/11/visual-studio-live-redmond-ndash-818-to-821.aspx <div align="center"> <h1>The Goods... </h1> <br /> Thank you Redmond, 1105 Media, Microsoft, fellow speakers and all attendees for a great show. I had a blast! <br /> <table><tbody> <tr> <td><iframe height="400" marginheight="0" src="//www.slideshare.net/slideshow/embed_code/38229557" frameborder="0" width="476" marginwidth="0" scrolling="no"></iframe> <br />Code: <a href="https://github.com/rickggaribay/neurl">https://github.com/rickggaribay/IoT</a> </td> <td> </td> <td><iframe height="400" marginheight="0" src="//www.slideshare.net/slideshow/embed_code/38229551" frameborder="0" width="476" marginwidth="0" scrolling="no"></iframe> <br />Code: <a href="https://github.com/rickggaribay/neurl">https://github.com/rickggaribay/neurl</a> </td> </tr> </tbody></table> </div> +++ <p> </p> <p>I’m thrilled to be speaking at VS Live Redmond next week. The show starts on Monday August 18th and goes through Thursday the 21st on Microsoft campus in Redmond, WA. </p> <p>Events in Redmond a<a href="http://bit.ly/RDSPK10"><img title="RDSPK10 (1)" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; margin: 15px 10px; display: inline; border-top-width: 0px" border="0" alt="RDSPK10 (1)" align="left" src="http://rickgaribay.net/images/rickgaribay_net/WindowsLiveWriter/VisualStudioLiveRedmond818to821_E9B6/RDSPK10%20(1)_3.jpg" width="184" height="154" /></a>re always a special treat as it gives everyone a chance to see the campus, interact with product team members and as always, meet and hang out with some of the best, most recognized speakers in the industry like Ted Neward, Michael Collier, Brian Noyes, Eric Boyd, Rachel Appel, Miguel Castro, Rocky Lhotka, Andrew Brust- the list goes on.</p> <p>I’ll be delivering two Azure focused presentations on the Internet of Things and API development with NodeJS.</p> <p>Since there is only so much space available for the abstracts themselves, I thought I’d elaborate a bit on what you can expect from each session in this short post. You can find more details about both talks on the VS Live Redmond <a href="http://bit.ly/RDSPK10" target="_blank">website</a> or go directly to the abstracts by following the links below.</p> <p><strong>From the Internet of Things to Intelligent Systems: A Developer's Primer</strong></p> <p>In this talk, I lay the foundation for IoT and why you, as a developer should care. I’ll show off a handful of devices ranging from Arduino, Netduino and Fez Spider and demonstrate a number of common patterns currently in the wild including default communication, brokered and service assisted. We’ll explore the challenges that exist today in supporting commands, notifications, inquiries and telemetry. I’ll then spend some time giving you an in-depth tour of Reykjavik, Microsoft’s code name for its reference architecture focused on delivering highly scalable messaging fabrics for modern IoT solutions. </p> <p>We’ll take a look at the reference architecture and how it maps to components on Microsoft Azure. I’ll then demonstrate what a first-class Reykjavik device looks like and demonstrate live telemetry and commands for an end-to-end tour of Reykjavik. I’ve been spending a lot of time with Clemens and team over the last several weeks so this promises to be an inside look at the reference architecture and general shape of things you're unlikely to find publically anywhere else.</p> <p>Learn more about this talk here: <a title="http://bit.ly/VSLRIOT" href="http://bit.ly/VSLRIOT">http://bit.ly/VSLRIOT</a> or follow the conversation on Twitter #VSLTH04</p> <p><strong>Building APIs with NodeJS on Microsoft Azure Websites</strong></p> <p>This is a talk that I’ve been working on for several months now and continues to evolve. As I discuss in my <a href="http://bit.ly/1nT4K6h" target="_blank">latest article in CODE Magazine</a>, it started off as a spike for teaching myself basic NodeJS and kind of evolved into a little project for work that needed a hosting environment. After exploring various options, Azure Websites made the most sense and this talk focuses on the key features and functionality of a little URL shortening API along with key ALM considerations like IDE, unit testing, continuous integration and deployment. </p> <p>I’ll walk you through each step I took in building this API from scratch and deploy it live to Azure Websites as well as show you some really cool things you can do with the Kudu console when things go awry (as they almost always do in a live demo :-)) </p> <p>More about this talk here: <a title="http://bit.ly/VSLRAPI" href="http://bit.ly/VSLRAPI">http://bit.ly/VSLRAPI</a> or follow the conversation on Twitter  #VSLW09</p> <p>If you plan on attending either of my sessions please stop by and say hi or after the talk. I hope to see you there!</p><img src="http://rickgaribay.net/aggbug/371.aspx" width="1" height="1" /> Rick G. Garibay http://rickgaribay.net/archive/2014/08/11/visual-studio-live-redmond-ndash-818-to-821.aspx Mon, 11 Aug 2014 23:38:01 GMT http://rickgaribay.net/archive/2014/08/11/visual-studio-live-redmond-ndash-818-to-821.aspx#feedback http://rickgaribay.net/comments/commentRss/371.aspx http://rickgaribay.net/services/trackbacks/371.aspx Building a Simple NodeJS API on Microsoft Azure Websites from Start to Finish http://rickgaribay.net/archive/2014/06/20/building-a-simple-nodejs-api-on-microsoft-azure-websites-from.aspx <p>NodeJS is a powerful framework for building IO-centric applications with JavaScript. Although it hasn’t yet reached a major version number (as of this writing, the latest build is 0.10.28), the level of developer, community, and industry support for NodeJS is nothing short of astounding. From Wal-Mart to LinkedIn, NodeJS is powering more and more of the experiences with which you interact every day.</p> <p>Although there are many options for hosting NodeJS applications, Microsoft has been an early supporter of NodeJS from the beginning by making direct investments in the framework and demonstrating a commitment to making NodeJS a first class citizen on Windows, both on-premises and on Microsoft Azure.</p> <p>In my new article for CODE Magazine, I provide a lap around NodeJS and Microsoft Azure Websites by showing you a simple but functional API that I recently developed from the ground up. I’ll start by discussing the design of the API, go on to reviewing implementation details, and then proceed to pushing the API live on Microsoft Azure Websites.</p> <p>You can read the article <a href="http://bit.ly/1nT4K6h" target="_blank">here</a> as well as on <a href="http://amzn.to/1jDNMV6" target="_blank">Amazon</a> and at your local news stand. </p> <p><a title="http://bit.ly/1nT4K6h" href="http://bit.ly/1nT4K6h">http://bit.ly/1nT4K6h</a></p><img src="http://rickgaribay.net/aggbug/370.aspx" width="1" height="1" /> Rick G. Garibay http://rickgaribay.net/archive/2014/06/20/building-a-simple-nodejs-api-on-microsoft-azure-websites-from.aspx Fri, 20 Jun 2014 19:41:14 GMT http://rickgaribay.net/archive/2014/06/20/building-a-simple-nodejs-api-on-microsoft-azure-websites-from.aspx#feedback http://rickgaribay.net/comments/commentRss/370.aspx http://rickgaribay.net/services/trackbacks/370.aspx Visual Studio Live Chicago Recap: Building APIs with NodeJS on Microsoft Azure Websites http://rickgaribay.net/archive/2014/05/09/visual-studio-live-chicago-recap-building-apis-with-nodejs-on.aspx <p>My first talk at VS Live Chicago this week (if you’re looking for my IoT talk, please click <a href="http://rickgaribay.net/archive/2014/05/09/visual-studio-live-chicago-recap-from-the-internet-of-things.aspx">here</a>) was based on a talk I started doing last year demonstrating fundamental unit testing techniques with NodeJS and Mocha. Since then, the code and the talk has evolved into a real API currently is early alpha at Neudesic. </p> <p>In this session, we started with looking at the problem – and opportunity- with long, ugly URLs and how most URL minification APIs like bit.ly, tinyurl, etc. solve the problem today. </p> <p>From there, we looked at why NodeJS is a great choice for building a Web API and proceeded to build the 3 key APIs required to fulfill the most fundamental features you’d expect from a URL shortening API including:</p> <ul> <li>Shorten <ul> <li>When I submit a long, ugly URL to the create API, I should get back a neurl. </li> </ul> </li> <li>Redirect <ul> <li>When I submit a neurl to the submit API, my request should be automatically redirected. </li> </ul> </li> <li>Hits <ul> <li>When I submit a neurl to the hits API, I should get back the number of hits/redirects for that neurl. </li> </ul> </li> </ul> <p>With the API up an running on my laptop, we proceeded to create an Azure Website and push the Node app via my local Git repository, taking it live. All was not well unfortunately as initial testing of the Shorten API returned 500 errors. A quick look at the log dumps using the venerable Kudu console revealed the cause: The environment variable for the MongoDB connection string didn’t exist on the Azure Website deployment which was quickly remedied by adding the variable to the website from the Azure portal. Yes, this error was fully contrived, but Kudu is so cool.</p> <p>With the API up and running, we exercised it a bit, verifying that the Redirect and Hits APIs were good to go and the scaled out the API from one to six instances with just a few clicks.</p> <p>As the API continues to mature, I’ll update the talk to demonstrate how this level of indirection brought forth by virtualizing the actual URL (as with traditional services and APIs) introduces many opportunities to interact with the person consuming the API (all via URIs!) as they take the journey that starts with the click and ends with the final destination.</p> <p>Without further ado, the code and more details on the talk can be found below.</p> <p>Code: <a title="https://github.com/rickggaribay/neurl" href="https://github.com/rickggaribay/neurl">https://github.com/rickggaribay/neurl</a></p> <p>Abstract: <a title="http://bit.ly/1iEEbNV" href="http://bit.ly/1iEEbNV">http://bit.ly/1iEEbNV</a> </p> <p>Speaking of which, if you haven’t already, why not register for Visual Studio Live Redmond or Washington DC? Early bird discounts are currently available so join me to see where we can take this API from here! h<a title="http://bit.ly/vslive14" href="http://bit.ly/vslive14">http://bit.ly/vslive14</a></p><img src="http://rickgaribay.net/aggbug/369.aspx" width="1" height="1" /> Rick G. Garibay http://rickgaribay.net/archive/2014/05/09/visual-studio-live-chicago-recap-building-apis-with-nodejs-on.aspx Sat, 10 May 2014 00:10:11 GMT http://rickgaribay.net/archive/2014/05/09/visual-studio-live-chicago-recap-building-apis-with-nodejs-on.aspx#feedback http://rickgaribay.net/comments/commentRss/369.aspx http://rickgaribay.net/services/trackbacks/369.aspx Speaking on Building APIs with NodeJS on Microsoft Azure Websites Next Tuesday, 4/15 http://rickgaribay.net/archive/2014/04/10/speaking-on-building-apis-with-nodejs-on-microsoft-azure-websites.aspx <p>I will be speaking at the Tucson .NET User Group next Tuesday on Building APIs with Node.js on Microsoft Azure Websites. This will be the 3rd time I speaking at this group, but first time I’m following Scott Hanselman (who spoke last month), definitely a tough act to follow!</p> <p>You can learn more about the topic here: <a title="http://bit.ly/1hEzAJf" href="http://bit.ly/1hEzAJf">http://bit.ly/1hEzAJf</a></p><img src="http://rickgaribay.net/aggbug/367.aspx" width="1" height="1" /> Rick G. Garibay http://rickgaribay.net/archive/2014/04/10/speaking-on-building-apis-with-nodejs-on-microsoft-azure-websites.aspx Fri, 11 Apr 2014 06:06:00 GMT http://rickgaribay.net/archive/2014/04/10/speaking-on-building-apis-with-nodejs-on-microsoft-azure-websites.aspx#feedback http://rickgaribay.net/comments/commentRss/367.aspx http://rickgaribay.net/services/trackbacks/367.aspx