Author: smartcoder

Data Validation using Mongoose in Node JS – MongoDB App

Data validation in MongoDB App can be easily done using the mongoose. Here is some sample validation examples: Marking Required field in MongoDB using... Read more »

Using MongoDB with Node JS

If we need to build Node JS apps using databases, then MongoDB is definitely a good option. MongoDB is a no-SQL database. For integrating... Read more »

Mongo DB Shell Commands – Git Bash Terminal

Intiate the db, by mongod Open new bash terminal and enter command mongo Now we can start using the mongo shell, just try the... Read more »

Install and Setup MongoDB Database – Local

Mongo DB is one of the most popular noSQL database. In this post we gonna setup MongoDB in a windows machine. Firstly goto Mongo... Read more »

Git Command for Creating new BRANCH from Terminal

In git we can create branches as per our project development. We can easily do that using terminal command. We can directly create new... Read more »

Todo List Project Code – Node, Express, EJS

We are creating a sample to-do list app using Node and Express JS. The templating for the app is done using Embedded Javascript (EJS).... Read more »

module.exports Short usage in Javascript

module.exports is mainly used for exporting functions or data from a Module. It is basically done using module.exports keyword. This can be now shortened... Read more »

Exporting Multiple Functions using module.exports in JS

module.exports is a javascript function created by the module system. It can be used to export function in a Module. Earlier we had discussed... Read more »

module.exports in Javascript – Node JS, Express

Module.exports is used with creating new module in javascript. Certain functionality of the app can be moved to a separate module. And it can... Read more »

How to print module details in Node JS

Module details can be logged using some code in the node app. Here is the code to log the module details in the console.... Read more »