ContextCapture User Guide

Run local server

There are several options to choose from when installing a local server, for example Apache, Wamp, or nginx. We are only going to suggest one, which has the advantage of being a zero-configuration server: http-server.

Installation

  • Install Node.js by using one of the installers from .
  • Start a command prompt / terminal. On Windows, type Command Prompt in the Search box, and then, in the list of results, double-click Command Prompt.
  • Make sure the last version of npm is installed by running this command in the terminal: sudo npm install npm –g. In Windows, you can drop the sudo keyword, but you should run the command prompt as administrator.
  • Run in command prompt / terminal: npm install http-server –g
  • Create a folder where you wish to store all your server data, including the 3MX data.

Use

  • Place your 3MX data and your web viewer copy inside your server folder (the folder you created in the Installation phase)
  • Start a command prompt / terminal. On Windows, type Command Prompt in the Search box, and then, in the list of results, double-click Command Prompt
  • In the terminal, go to your server folder
  • Type http-server
  • You can now access the server in any browser by typing http://localhost:8080. Navigate to the web viewer folder to visualize your productions. You can check the “Configuring the web viewer” section to see how to use the same web viewer for all your scenes.