https://github.com/haxefoundation/tora
NekoVM Application Server
https://github.com/haxefoundation/tora
Last synced: 4 months ago
JSON representation
NekoVM Application Server
- Host: GitHub
- URL: https://github.com/haxefoundation/tora
- Owner: HaxeFoundation
- License: lgpl-2.1
- Created: 2013-05-25T05:49:32.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T20:21:14.000Z (about 6 years ago)
- Last Synced: 2025-10-23T20:46:59.983Z (8 months ago)
- Language: Haxe
- Homepage:
- Size: 101 KB
- Stars: 30
- Watchers: 14
- Forks: 18
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
# tora
[](https://travis-ci.org/HaxeFoundation/tora)
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
```
3. Compile and launch the tora server.
```
cd path/to/tora
haxe tora.hxml
neko tora.n
```
4. Compile a index.n, which is the application code.
```haxe
// Index.hx
class Index {
static function main():Void {
trace("hello world!");
}
}
```
```
# build.hxml
-neko index.n
-main Index
```
5. Place `index.n` in the `DocumentRoot` as specified by the apache configuration file.
6. 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!`.