Please read on website https://docs.mongodb.com/manual/installation/ and install mongodb before you run this code.
After running Mongodb server, start server by node on you terminal,
With terminal go to the forder keep this project (forder keep file server.js) you write: node server.js for running node server with localhost:8080
Go to you browser with localhost:8080 and see this website.
Thanks and best regard,
M.V.Khanh