Haxe is a staticly-typed programming language that can be transpiled to Javascript, PHP, Java, C++, C# or Python or compiled into Flash or Neko bytecode. Haxe has the unique advantage of code-sharing between all manner of clients and servers even though they run different servers, languages or architectures.
This demo shows the basics of how to develop client-side Javascript apps in Haxe. Many details are included in the comments of the files under src/ as well as build.hxml. While the Haxe standard library exposes standard Javascript and DOM APIs, we advise using a library that abstracts these since direct DOM manipulation can be verbose and unnecessarily complex. In this example, we use jQuery.
- Clone the repo
- Install the jQueryExtern extern with haxelib by running
haxelib install jQueryExtern
. - Compile Haxe source with
haxe build.hxml
The Haxe manual is a growing resource for getting started with Haxe.
Here are some links you may find helpful:
- An Introduction to Haxe
- Haxe targeting Javascript
- API Reference
- Haxe News Roundup
- Try Haxe in your browser
Get help from other Haxe users:
If you have other helpful links to share, or find any of the links above no longer work, please let us know.