node.js

A 10-post collection

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


Pushing Node.js to Azure While You Make Your Coffee

Many of us enjoy our coffee in the morning ... or late afternoon ... or whenever we can get a dose of "wake me up". It takes just a few minutes. But those are also precious minutes away from the keyboard where I feel most productive. Often I run a process when I go to make my coffee, but so many take so long that it is nice when I can get something done in just a few seconds or minutes. I've been using this relatively new command for Azure called az webapp up. It pushes my node.js apps up to Azure without asking me a ton of questions. Run it in a folder and give it a name and boom!...


Run Node with Docker in 5 Minutes

Heard of the latest and greatest thing? Of course. It's everywhere. Been avoiding it? Ugh, maybe if we just pretend it doesn't exist, this fad will disappear before we need to learn it. Do you ever feel this way? I think it affects a lot of people in our technical community. What if the time investment was just a few minutes, you could learn the basics of the "new thing", and have something running? Just a little taste of success to at least say we've tried it? Sometimes that is all it takes to get started. Let's give this a go with Docker and see if it can take us less than 5 minutes to find success. Here is what...


Building MEAN Apps with Cosmos DB - Part 6: POST, PUT and DELETE with Cosmos DB

Building MEAN Apps with Cosmos DB - Part 6: POST, PUT and DELETE with Cosmos DB I've released a new videos 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. This next video shows how to code the POST, PUT, and DELETE APIs to connect to the MongoDB database with Azure Cosmos DB, using Mongoose. This video series explores: Exploring the Angular, Express, Node, and Cosmos DB app Building the Node.js and Express.js app, along with the Angular CLI Angular and Express APIs Creating and Deploying Cosmos DB Querying Cosmos DB POST, PUT, DELETE Coming Soon...


MEAN and Cosmos DB - Part 5: Querying Cosmos DB

Building MEAN Apps with Cosmos DB - Part 5: Querying Cosmos DB I've released a new videos 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. This next video shows how to connect to the MongoDB database with Azure Cosmos DB, using Mongoose, and query it for data. This video series explores: Exploring the Angular, Express, Node, and Cosmos DB app Building the Node.js and Express.js app, along with the Angular CLI Angular and Express APIs Creating and Deploying Cosmos DB Querying Cosmos DB POST, PUT, DELETE Coming Soon Topics will include: Building and running the...