node

A 10-post collection

Keep Calm, and Keep Coding with Cosmos and Node.js

Coding with the Cosmos DB SDK feels good. Yes, I said feels good. Yeah, yeah … it is fast to install, fast to learn and fast to execute. But most of all it feels good. Think about when you are coding and everything is just flowing for you. It feels great to be in a rhythm and get everything out of your head and into the code and working fluidly! A key ingredient to this is when the APIs we are coding are intuitive and easy to follow. This is where the Cosmos DB SDK shines brightest. Let's see why. I Want to Have Fun with the Code Now Cosmos DB SDK is awesome, feels great, and if you want to...


Everything You Need for Coding with Node and Cosmos DB in 60 Seconds-ish

I've been known to share that my development experience with Cosmos DB's Node SDK and the VS Code extension are fantastic and feel great. I want you to experience it too. But I expect you are in a time crunch. In which case, this post is for you. I've collected the five key links you need to have a great experience with Cosmos DB using Node. 1 - It's Intuitive How are they intuitive? The functions and properties just make sense. Get my container. Get its items. Read them all. Return them as an array. When things make sense, it takes less time to figure it out. Please check out my 4-minute post on why I feel good when coding...


Node and npm without sudo

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? After discussing this with Tierney Cyren, we found a much easier way to get node and npm running on my mac than what I used to do a few years back. First, we want to use the official Node.js install. I mean, its official, right? And if we...


MEAN and Cosmos DB - Part 1: Introduction

Building MEAN Apps with Cosmos DB I've released a new video series that shows how to build MEAN apps using Cosmos DB. Each video in the series will be a couple of minutes and show how each part of the application works. The first video is out now (see below)! I build a lot of apps with MongoDB, Express, Angular and Node (MEAN). MongoDB just works so well with these, but recently I've been using Cosmos DB on Azure in its place because it's easy to use, scale, is super fast, and I don't have to change how I code. Cosmos DB makes it easy to step right in where I used to use Mongo, because it lets me use...


Multiple Versions of Node with n

What happens when a new version of node is released? What if you need version 0.10.36 for one app and 4.4.2 for another? Did you know version 6 is out now too? Yikes! it would be great if we could manage multiple versions of node on the same computer. Well, we can with n or nvm! These are 2 different tools that allow us to host multiple versions of node. We can use it to select which version to activate, and the toggle back to another version in seconds. They are super helpful. I prefer n, but it only works on a Mac. We can install it by running npm i -g n. Simply run n...