Full-Stack Web Development with Vue.js and Node

(singke) #1
Introducing MEVN Chapter 1

Deleting a single document that matches the given criteria

To delete only the first record that satisfies the given criteria, we can just use:


> db.posts.deleteOne({ title: 'Expressjs' })

Deleting all records

To delete all the records from a collection, we can use:


> db.posts.remove({})

Introducing Git


Git is a version control system for tracking the code changes in our application. It is a free
and open source software used to track and coordinate multiple users when building an


application.


To start using this software, we need to install it first. There is a very easy way to install it


on every OS.


Installing Git on Windows


We can find the installer for Git for Windows at https:/​/​gitforwindows.​org/​.​


Download the executable installer file for Windows and follow the step-by-step instructions
accordingly.


Installing Git on Mac


We can easily install Git on Mac via Homebrew. Just type the following command in the


command line to install Git on Mac:


$ brew install git
Free download pdf