To create a file, hover your mouse in the Explorer window and you will see buttons show up to create a file. Node.js has two common names for entry point files (the file that is run first in your app). You will see that the directory is empty, so you will want to create your first Node.js script. Then, in Code, use Ctrl+O or File->Open and open the directory. Firstly, you should create a directory to place your first Node.js project. You are going to use Visual Studio code to write your first ‘hello world’ script. VS Code is created and maintained by Microsoft and is available for free: Visual Studio Code is free, and provides useful tools and extensions for writing JavaScript. The most popular choice for newcomers is Visual Studio Code (also known as ‘vscode’ or Code).
Node.js supports most popular operating systems: Īs well as Node.js, you need an IDE to write JavaScript code. You can install it for the operating system you use. You can install Node.js on your PC from the Node.js website. If you haven’t used JavaScript before, please read up on the following JavaScript references first: Although Node.js is cross-platform, specific tips for IBM i are given in section 8. Node.js is a packaged version of the V8 Javascript engine, created by Google and shipped in Chromium. This guide will outline writing your first Node.js application.