File Server Setup
Overview
The davinci file server is a simple server written in Javascript that can be run on a local machine
using Node.js. To run the server requires installing node js, installing the pre-requisite libraries,
then downloading and running the script.
Pre-requisites
The file server is a Javascript script that is can be run using
Node js. Prior to running the script, you need to install Node js.
The davinci web-server also depends on two node.js packages, express and body-parser.
You will need to install the packages in the folder where you intend to run the server.
Install the two packages by entering the following
commands in the command prompt from above. (Be sure that you are in the folder that hosts the file server
when running the installation commands)
npm install express
npm install body-parser
Setup
The file server runs within a folder on your local hard drive. You need to create the folder where the server is to be hosted.
Within that folder, place a folder called root, which will hold the files that you wish to host.
Next download the the javascript file at this
link and place
it in the file server directory.
(right click on the link and choose download.)