Skip to content

HaxeFoundation/tora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!.