1.At first to learn Basics of NodeJS U must download it from its official website and follow the steps.
2.using npm
try to install the node modules.
-
Try to run the directory programs from
NODE
each file has different outputs from it -
JUST try
node server.js
in cmd.
-
for connecting the Mongodb first download it for Windows. https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.8-signed.msi
-
And after downloading in cmd connect database in cmd with NODEJS run