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. Node.js provides a platform for running Javascript locally. Davinci provides tools for running code that you run on davinci locally on your machine.

For a guide to running Node.js locally, please see running node.js locally.

Node js Libraries


For the most part, there is no need to duplicate libraries available on the browser for the desktop. (with the exception of perhaps changing the export syntax) The davinci platform publishes a set of libraries.
  • File Operations : file.js is a library for dealing with files on your local machine. There is no corresponding library on the davinci web because the browser has security restrictions that prevents access to files. The file operations library wraps Node.js file operations with promise enabled code and provides utilities for running standard ETL processes.
  • File Data: file-data.js is a library for dealing with file operations on structured data files. It includes methods for parsing various file formats.
  • Rendering Text : For rendering dynamic text on your local machine

Local Servers


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



SSL : when setting up a file or webserver in a zero trust environment, it is important to encrypt data as it travels back and forth between the browser and the server.

Topics


Contents