In the previous episode, some very basic extraction was done to create a few modules within the uploader code. But doing that hasn’t significantly changed the way the code looks or works – it just moved a few things around. However, the basic setup with those modules is providing the basis for the changes that […]
Now that we’ve solved the primary problem of upload.js not working, it’s time to start looking at how the code in this file can be a little better organized. Fortunately, there are a few easy places to start – functions. The upload.js file has a handful of functions that are already self-contained. They receive all […]
In the previous episode, an HTML for was created to handle the required fields for the AWS S3 post. However, having the form set up is not enough. The file that is selected must be processed by the Node / Express server that has been created, to generate the needed cryptographic signatures and policies. Before […]
The code for the analytics service is working now, and errors are being reported appropriately. Things seem to be going well for the media service! But there’s something not quite right about the code in the analytics background process. It’s a bit too cluttered, it seems. It has too many things going on in a […]
What does it take to get Babel v6 up and running? And how would you go about upgrading from v5 with Grunt, to v6? In this episode, you’ll learn exactly that – how to upgrade Babel to v6 and keep your system running. Along the way, you’ll see a few potential problems that you may run into, some solutions, and how to fix the differences between Babel v5’s module exports vs v6.
In the last episode, we looked at the new module syntax in ES6 and how it works with Node.js directly. While the module syntax was fairly simple and flexible, only exploring the node side of things left a big question: How does this work in a browser? In this episode, then, we’ll look at what […]