node

A 12-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...