node

A 10-post collection

Angular 1 from JavaScript to TypeScript

Recently I had a great opportunity to sit down with brilliant and humble friend Chris Martin to film a Play by Play video for Pluralsight. Chris had an Angular 1 app he had written in ES5 and wanted to convert it to TypeScript. We decided to try the conversation live while filming (what could go wrong?!). The keys for us were to tackle it in a methodical way such that we could see it running as we did the conversion and to have transpilation, linting and tooling help along the way. You can watch us on this venture as we had a lot of fun exploring how to tackle this conversion. Here is the description of the video with me...


Angular 2 Tutorial - QuickStart to Routing

The Tour of Heroes tutorial takes us through the steps of creating an Angular application in TypeScript. You can start the Tour of Heroes tutorial here. img[alt=heroes] { height=100px; width:100px} We tackle new technologies often, probably more often that we prefer. We are pressured to get up to speed on these technologies as quickly as possible. Often the technology fights back at us with awful or no documentation. Sometimes the documentation is wonderful for APIs but no so great at showing us how to think about building an app. I have a passion for Angular 2 and JavaScript so when the Angular team and Ward Bell were designing the docs at http://angular.io and they approached...


Building Apps with Node, Express, Redis and Mongo

Recently I had a great opportunity to sit down with the amazing Sam Artioli to build a flexible Node app from scratch. I love coding on the fly, and I love pair programming with awesome developers. That’s why I enjoy filming these Play by Play videos. You can watch Sam in action here. Here is the description of the video with me and Sam … In this video, NodeJS expert Sam Artioli builds a web app from scratch. You’ll learn how to set up a Node app, build a web API with Express, integrate with MongoDB, and cache HTTP results with Redis. You’ll also learn some expert techniques, such as offloading and proxying requests...


How to use npm global without sudo on OSX

When running npm and node, you may find yourself getting permission errors that ultimately lead you to using `sudo` in your commands. While this helps get around the issue in the short-term, it also places stricter permissions on those installs and it becomes a slippery slope where soon you may need sudo for more than you bargained for. Also, do you really want to be using `sudo` to install npm packages? UPDATE: Easier path **Jan 28, 2018** After discussing this with Tierney Cyren, there are good reasons to use the official Node.js install and (awesomely) there are now easier ways to avoid the sudo hell. hey ... it's been 3+ years since I wrote this post, so it's great to...


Tips for Running Node and NPM on Windows

I recently helped a few folks get node and npm up and running on Windows. Here are some of the steps we were able to follow to make this all work. Requirements The systems already had the latest version of Visual Studio 2015 Preview or the free Visual Studio Community edition. I highly encourage starting there. Also, make sure git is install. Latest version of Visual Studio git Chocolatey Running Node and NPM on Windows First get node via chocolatey. You may have to update your paths. Sometimes paths were updated for us, sometimes they were not. Your mileage may vary. Run these from an administrator command prompt or console2 or whatever your favorite terminal is. choco install nodejs choco...