Eventually I’ve found the time to put everything together and here come my demos from haxecon 2011.
You can play with it live or you can download the project and compile/run it on your machine.
To compile the project you must have installed through haxelib the following libraries (be sure you are using the correct version because the API will probably change before the 1.0 release):
Note that uform is included in the project and you don’t need to install anything for it.
To run the example on your machine you will probably have to tweak a couple of things:
- Main.hx: if you use mod_rewrite you will have to create your .htaccess file and change the parameter in the Config constructor from “false” to “true”. Also, if you run the demo from a subfolder different then demo you will have to change that parameter too; if you plan to run in root just put “/” in the path argument.
- demo/Config.hx: Change your connection settings for your Mysql database and be sure to create a table in the DB with the structure described in the same file.
The project is divided into 3 separate projects:
- web-pages (both php and neko), use the haxecon.php.hxml or haxecon.neko.hxml to compile
- colors example page (js), compile using haxecon.d3colors.hxml
- d3.js port examples (js), compile using haxecon.d3examples.hxml
The live demo on this website is running on neko which is way faster than the php version.