Running our first node program

Node is a JavaScript runtime, which means that it is an environment on top of which you can execute your JavaScript code. It is recommended that you make a new folder for all project files that we will use throughout this book.
Managing all the project files can be done with either of these ways:

  • Using your favorite text editor application on the Raspberry Pi (if you are using the Raspberry Pi's desktop)
  • Using one of the Terminal editors, such as vi or nano. This can be done on SSH or through the Raspberry Pi Terminal application.
  • Editing files on a repository on your own computer and pushing changes to the Pi using a version control management tool like Git.

The last method is the most efficient and also the least error-prone. In fact, I feel it's appropriate to take a brief diversion to set it up so that we can work with a much clearer standard going forward:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.195.110