node js beginner guide with mongo and angular
node js step by step tutorial showing you how to create a full fledged node js angular js and mongo db for beginners who have never played with these technologies or played partially independently but not all those technologies together.
I assume installing nodejs to your computer can be found easily and I will not go through that.
Starting with a simple Hello world display with webserver
Unlike other languages where you have to setup and configure a different independent webserver, node js, comes with a total self contained web server serving at ports that you can assign. Which makes it a full one stop web application.
For comparison, when working on php might require you to setup a different webserver like Apache or IIS.
In this part, I will show a very simple old school hello world example to be done in node js.
In the upcoming tutorials, you will see how to change those step by step.
Hello world in node js
1. Create a folder in your computer and name it as
2. in the
node-tutorial folder create
hello.js add the following code in it.
Then save the above file and run the file as
This will print Hello World in the CONSOLE.
What did happen
The above code is running from the node js as a command line code. There is no any web server, that making it available through browsers per se, this time, it will just print that on right on the terminal you are running it.
You might know