Update of "Getting started"

Artifact ID: 87413ebf3dce58500e0c21c401918d39379eb10a48e527f7557fa2e40ba9f9cd
Page Name:Getting started
Date: 2021-06-10 17:08:26
Original User: robin.hansen
Parent: ec4df7155a4678e02b9903b3e1d631ad04539b275f1d282f9e25c4209461239d (diff)
Next 35c3bebbae7d11c60638130e04f53040c07bb1fbc498dc7d4a6ff7c286597b09

Make sure you have Node.js installed, version 14 or later.

You can install the Stabel command line tool using npm: npm install -g stabel.

To initialize a project, create a folder and run this command inside that folder: stabel init author/projectname.

You now have a stabel.json file which describes several aspects of your project. Here you can define the name of the project, the version of the project, any dependencies, where those dependencies can be found and which modules you're exposing outside the project (if you're making a library).

By default, you'll find code in your src folder, there should be a simple module there now.

To compile your project, you can run: stabel compile.

To compile and execute a function, you can run stabel run /author/projectname/path/to/module/fn. Functions executed in this way requires a type signature of -- Int.