Getting startedΒΆ
Download and install the latest Windows or Linux WhaleJS build.
Create a project directory.
Inside the project directory, create
setup.jsonfile, and specify the main source file.{ "main": "main.js" }
Inside the same directory, create
main.jsfile, and add some code.const whl = require("whale-core"); function loop() { whl.print("Hello World!"); return false; // Ends main loop. }
Run your project.
$ whalejs [path to project directory]
See the demo for a more complete example.