Getting startedΒΆ

  1. Download and install the latest Windows or Linux WhaleJS build.

  2. Create a project directory.

  3. Inside the project directory, create setup.json file, and specify the main source file.

    {
      "main": "main.js"
    }
    
  4. Inside the same directory, create main.js file, and add some code.

    const whl = require("whale-core");
    
    function loop()
    {
      whl.print("Hello World!");
    
      return false; // Ends main loop.
    }
    
  5. Run your project.

    $ whalejs [path to project directory]
    

See the demo for a more complete example.