Author: smartcoder

Relationships and Embedding Documents using Mongoose

Updating Existing record with new relation schema Read more »

Update Data in MongoDB using Mongoose

Updating Data in a Node App can be very easily done using the mongoose package. Here is the sample code for updating a field... Read more »

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 »