Javascript Outside the Browser

Overview


Javascript is the language that powers the davinci platform in the browser, but it is also a powerful language for running code on you local machine or server.

To run Javascript locally, first install Node.js. Node provides the runtime to execute Javascript code. Once Node is installed, you can run a script by executing the following (assuming the file name of your script is "app.js")


node app.js
					

Local Servers


The davinci platform provides a number of scripts for running server like processes on your local computer or server.

  • Web Server : simple implementation of a web server use Node.js
  • File Server : the file server makes files on your local hard drive or server available to your browser.
  • Database Web Server :

Topics


  • Converting Web Scripts to Local Scripts - a discussion of how to port code that you have running in the browser to your local machine.