If you already have NodeJs and NPM installed, skip to Sample section.
Download the latest (LTS) Nodejs installer from https://nodejs.org/en/download/
Run the installer and follow the NodeJs setup Wizard. The default settings are fine for our use.
NPM is included in this installation.
Having installed NodeJs and NPM, we're now ready for our server code.
In this tutorial, we'll use C:\babylon
Your C:\babylon folder should now look something like this:
C:\babylon\public\ C:\babylon\public\index.html C:\babylon\public\babylonScene.js C:\babylon\package.json C:\babylon\readme.md C:\babylon\server.js C:\babylon\Windows_NPM_INSTALL.BAT C:\babylon\Windows_START.BAT
npm install --save
A new folder "node_modules" should be created.
C:\babylon>node server.js Server is listening on port 80
C:\babylon> node server.js
Execute "node server.js" on C:\babylon
If anyone wish to expand this section, feel free to PR
In the Public folder you'll find a sample scene consisting of a index.html and a babylonScene.js file.
The browser's access is restricted to this folder and it's files & sub-folders.
You're now ready to start your project.