NodeAtlas

NodeAtlas as a simple web server

If NodeAtlas can not find the "webconfig.json" or --webconfig you have specify, it will run in either "Simple Web Server" or "Public" mode.

This mode is useful for testing very quickly that NodeAtlas is installed properly or to create small HTML examples that need to run a web server (AJAX returns, embedded iframe, etc.).

To understand what this means: if there is any file in the directory where NodeAtlas was launched, it will be returned by HTTP request so have the demands via its path.

For example, by launching NodeAtlas in the site-hello-world folder

site-hello-world/
├─ templates/
│  └─ index.htm
└─ webconfig.json

by running the command

\> node </path/to/>node-atlas/

or even the command

\> node </path/to/>node-atlas/ --webconfig webconfig.not-exist.json

the server will run in "Simple Web Server" mode and file "http://localhost/webconfig.json" or "http://localhost/templates/webconfig.htm" will be available as the browser could refer as a simple web server.

Note : the command --generate not work in this mode.