Having multiple environments in which you run an application can prove to be challenging. You have to manage different configurations for each of these environments, and ensure your code can easily switch between environments – with no changes to the code, itself. With the EPA module that has already been used throughout this series of […]
MongoDB is generally a lightweight database system. It doesn’t take too much to install, configure and start using it. When getting ready to deploy your app to production, though, it’s worth considering whether or not you want to be responsible for the installation, configuration and maintenance of a database system like MongoDB. Personally, I don’t […]
Now that the unique index has been fixed, and the database will no longer allow multiple files with the same name, it’s time to update the file list with all the new episodes in the S3 bucket. To do this, a few minor changes will be made to the script that was previously created for […]
It’s been a few weeks since files were added to the database, from the S3 bucket. Before starting work in the production configuration of the system, it would be good to get the list updated. But, in the process of looking at updating the list, a problem has been found. It seems there are duplicate […]
Now that Amazon S3 can be accessed, and files can be downloaded using a signed URL, it’s time to store a file list in MongoDB. Having a File model will allow the code some additional features, such as security and having a valid list of files instead of just haphazardly allowing access to files by […]
Having built a set of MongooseJS models and schemas, it would be nice to use them in a web application, right? Of course it would! But before we dive in deep with using our models to load and display data, there’s a pressing matter of routes and route organization in ExpressJS applications.