Fabric

Fabric is an SDK built on Alan to effortlessly create enterprise level desktop and web applications. Robust interfaces and database connections create rock solid third party integration, while a sophisticated web client automatically generates a user interface based on your datamodel.

Get it for Windows Get it for Linux Get it for macOS

Get it for macOS
Or for Linux or Windows

Get it for Linux
Or for Windows or macOS

Get it for Windows
Or for Linux or macOS

Versions

All the latest components and system-types:
get your versions.json here

Installation

Command Line Utility

The fabric command line utility has everything you need to validate, compile and run your project. Download and extract the Fabric SDK package to somewhere on your computer.

The utilities require a unix-like environment with bash. For Windows you need either Git For Windows, which comes with a bash shell, or the Linux Subsystem.

Now add the new utils directory to your $PATH like so:

macOS, Linux or Linux Subsystem (bash):

  1. Copy the full path of the new utils directory (e.g. /usr/local/fabric).
  2. Open your ~/.profile or ~/.bash_profile file, or create ~/.profile if neither already exists.
  3. If you already have customized your $PATH, append the utils directory path to it.
  4. Otherwise create a new line with PATH=$PATH: and append the path to that.

Your $PATH should like something this: PATH=$PATH:/usr/local/fabric, note the : to separate each path.

Windows Command Prompt:

  1. Copy the full path to the new utils directory.
  2. Open cmd.exe
  3. Run the following command, replacing C:\Users\Joe\fabric with the path to your new utils directory:
    setx PATH "%PATH%;C:\Users\Joe\fabric"

To verify that everything works type fabric in bash. It should give you a list of commands it will recognize.

Sublime Text 3 Plugin

Syntax highlighting and build systems to validate your .alan files

  1. Make sure Package Control has been installed. Use Tools > Install Package Control if you haven't already.
  2. Open command palette (ctrl-shift-p) (command-shift-p).
  3. Choose "Add Repository".
  4. Enter: https://m-industries.com/sublime/fabric-sublime-repository.json
  5. You can now open the command palette and run "Install Package" and select "Fabric Sublime Syntax".
  6. Package Control will automatically install updates.

    Additional steps for Windows

    For the build system to work, unless you're using the Linux Subsystem you also need to add bash to your path.

    1. Copy the full path to directory with bash.exe, which is probably C:\Program Files\Git\bin
    2. Open cmd.exe
    3. Run this command, with the bash directory:
      setx PATH "%PATH%;C:\Program Files\Git\bin"