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


Debug Your Node.js App in 60 Seconds

Setting up debugging can be a chore. It can make you feel like console.log isn't so bad after all. Right? While I enjoy a good console.log as much as anyone, I'd much rather debug with zero configuration of my app. Wouldn't you? Visual Studio Code (aka VS Code) has changed the game on Node.js debugging. There is a feature called Node: Auto Attach (you can learn more about it here in the docs). Or keep reading - this will only take a minute. When you enable this feature, you can run your node app from a command line, from an npm script, or from a tool that runs one of those. Just make sure you add the...


Associate File Types in VS Code

I love a good editor. All of the great tooling, intellisense, auto-complete and all of the goodness and efficiency. Intelligent tooling is a huge part of what makes our day fun. Don't you agree? For example, when I open Visual Studio Code (aka VS Code) and it recognizes the file type I am editing, it lights up all of the relevant tooling features. Typescript, JavaScript, docker files, Vue files … it all works great! Sometimes we have to load an extension to make some of these light up (e.g. Vue files with the Vetur extension). So you can understand it makes me sad when I open a file and I get zero help from the tool. No color coding of...


Real Talk JavaScript Episode 0009 - RxJS with Tracy Lee

John, Ward, and Dan Wahlin talk with Tracy Lee about her experience as on the RxJS core team. Tracy discusses where she sees RxJS used in real-world apps and shares tips on using RxJS that you don't want to miss. Listen to this week's episode of Real Talk JavaScript. Tweet Real Talk JavaScript is available on all the major podcast channels, every Tuesday morning! Please follow us at @realtalkjs on Twitter...


Node.js Everywhere with Environment Variables

You build your Node.js apps to work first and foremost on your computer. You know it’s important that apps also work everywhere they need to run. This could be on your colleagues’ computers, internal company servers, cloud servers, or inside of a container (maybe using Docker). Enter environment variables. I have been a closet sketch-noter for a while now. I decided to start sharing them more. You can see the sketch-note I created for this post, as an illustrated guide to using environment variables. Environment variables are a fundamental part of developing with Node.js, allowing your app to behave differently based on the environment you want them to run in. Wherever your app needs configuration, you use...