Monthly Archives: December 2021

Connecting ExpressJS to MongoDB with Mongoose

While building an app with ExpressJS that uses MongoDB as the database, you might not have access to the database shell to run your commands. We will use drivers or npm libraries like Mongoose to connect the ExpressJS application with the MongoDB database. This article will understand the syntax and steps involved in connecting ExpressJS […]

Installing Node.js on Windows Subsystem for Linux (WSL2)

I have been using the Windows Subsystem for Linux (WSL2) on my Windows machine to learn web devlopment. While trying to use Mongoose on Node, I was unable to run it as I was running Node v10 and the minimum requirement for running Mongoose was Node v12. I am documenting the commands I used to […]