Created by a Joyent software engineer Ryan Dahl in 2009, Node.js is an open-source and cross-platform runtime environment for creating almost any kind of project.
But with Node, we don’t necessarily have to do that.
Node executes with this engine as well and is able to run codes without needing a browser.
Also, libraries built in Node.js are written using non-blocking paradigms and techniques, making blocking behaviour the exception rather than the norm.
What Can You Do With Node.js?
- You can create, open, read, write, delete and close files on the server.
- You can collect form data
- You can perform CRUD (Create, Read, Update, Delete) operations using any database of your choice.
- You can generate dynamic page contents.
Before you can use Node or its package manager (NPM) for you project, you have to first download and install it.
Node.js can be downloaded here.
You have to download the version that suits your operating system as illustrated above.
After installation, for best performance, you might want to restart your system, especially if you’re on Windows. Then to confirm if Node is really installed, go to your terminal (for mac users) or Command prompt (for Windows users) and type in the following command:
If all goes well, you should see the version of node you installed and then you can get started.