malublu / tora

NekoVM Application Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tora

Build Status

NekoVM Application Server

quick start

  1. Install neko, which includes mod_neko*.ndll and mod_tora*.ndll (* should be a number).

  2. Enable mod_neko and mod_tora in the apache configuration file:

LoadModule neko_module path/to/mod_neko*.ndll
LoadModule tora_module path/to/mod_tora*.ndll
AddHandler tora-handler .n
DirectoryIndex index.n
  1. Compile and launch the tora server.
cd path/to/tora
haxe tora.hxml
neko tora.n
  1. Compile a index.n, which is the application code.
// Index.hx
class Index {
	static function main():Void {
		trace("hello world!");
	}
}
# build.hxml
-neko index.n
-main Index
  1. Place index.n in the DocumentRoot as specified by the apache configuration file.

  2. Visit the address and port (Listen, ServerName, and/or VirtualHost) as specified by the apache configuration file. It is usually http://localhost/ or http://localhost:8080/. The page should show Index.hx:3: hello world!.

About

NekoVM Application Server

License:GNU Lesser General Public License v2.1


Languages

Language:Haxe 87.0%Language:HTML 12.4%Language:Shell 0.3%Language:Batchfile 0.3%