Day 36 of 100days of code.MERN Stack Project Building a Book Store Application Part two - Add MongoDB and Mongoose to node JS Lets visit the MongoDB website www.mongodb.com. Sign in or create an account. Select build a database after login or signup. Select the free and 0 pla...Feb 24, 2024·2 min read
Day 31 of 100days of code.Introduction to MongoDB Getting started with MongoDB MongoDB is a document oriented non-relational NoSQL database. Working with MongoDB Database A database is simply a storage in MongoDB server that stores all the collections we create in the databas...Feb 19, 2024·2 min read
Day 30 of 100days of code.Working with Express JS Environment variables Keep in mind that nodeJS and express apps can run in different environments. The two most important environments are development and production environments. By default express sets the environment to dev...Feb 18, 2024·3 min read
Day 29 of 100days of code.Working with Express JS Serving static files Static files are those files sitting in our file system which we cannot currently access using our routes. Lets create a folder in the file tree called public and inside the public folder, lets create anot...Feb 17, 2024·2 min read
Day 28 of 100days of code.Working with Express JS Chaining multiple Middleware Whenever a user wants to create a movie object, first we want to check if the movie contains all the required properties in the request body. We want to allow the user create a movie only when all ...Feb 16, 2024·2 min read
Day 27 of 100days of code.Working with Express JS Understanding Param Middleware Param middleware is a special middleware which only runs for certain route parameters. To create a param middleware, we use a method called param(). Using the param() method, we can create a midd...Feb 15, 2024·2 min read
Day 26 of 100days of code.Working with Express JS Creating and using Routes Module This is basically restructuring our code base to look clean and easy to read. Lets create a new folder and call it routes. Lets create a new file inside the folder and call it moviesRoute.js be...Feb 14, 2024·2 min read