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.

    # Linux
    $ ./WhaleJS.AppImage [path to project directory]
    
    # Windows
    > whale.exe [path to project directory]
    

See demos for more complete examples.