Webpack’s documentation is very good, but I wanted to document a very simple few steps to setting up Webpack, as a light introduction for those who want to see what it does before jumping in.
I prefer to use yarn over npm as I personally find it easier and more reliable. In most casts yarn & npm are interchangeable.
Create a new directory for your app and initialize it. Yarn will ask you some questions, which you can leave as the default by pressing `return` for each.
Next, install webpack, plus webpack’s CLI. These are added with the --dev flag as they are only needed for development, they aren’t modules needed for your application once it is built. …
Last year I experimented with Azure’s Cosmos DB. It didn’t end up getting used but I had a simple proof of concept that worked and I thought others might find it useful as an introduction to using Cosmos DB with Lucee or Coldfusion.
This is a very simple demo and the code is not structured how you would in a real-world project, but the aim was to make the code as simple to understand as I could.
As Cosmos DB is accessed through an API this demo is essentially a function that interacts with its API and its particular requirements. I’ve only covered the basic functions of CosmosDB in this demo but all other functions will be a case of reading the manual and updating the functions.
Recently I was asked what my approach to a new technical design is. I realised I’d never written it down how I go from nothing to an initial technical design, and that it was probably worth doing so, as much for my benefit. So this is an attempt at that.
It is extremely unlikely that the first architecture diagram you draw matches what goes into production. The problem space you’re working in will evolve and shift and the influences upon your decisions will change as your understanding increases. …