How to clone a Node js repository and install the required dependencies and start the project

Have git and node js installed

Clone the git repo with the following command using the terminal. [ Example git link: https://github.com/username/directory.git ]

git clone https://github.com/username/directory.git

Go into the the directory

cd directory

Then run

npm install

Finally to start the project

npm run serve