The Ballerina Composer provides a flexible and powerful browser-based tool for creating your Ballerina programs. You can build your integrations by creating sequence diagrams, dragging elements from a tool palette onto a canvas. As you build the diagrams, the underlying code is written for you, which you can work with in the Source view. You can also use the Swagger view to define services by writing Swagger definitions. You can switch seamlessly between the Design view, Source view, and Swagger view and create your programs in the way that you like to work.
You can create your integration in Design view:
And go to Source view to edit the code that's generated:
You can also go to Swagger view to edit the Swagger definition that's generated:
The build process of the composer works on Maven and Node Package Manager(npm).
- JDK 1.8.0
- NodeJS (Version 6.x.x)
- Maven 3.0.5
- Clone(
git clone
) and build the ballerinalang/composer project usingmvn clean install
. - Clone(
git clone
) and build ballerinalang/tools-distribution project usingmvn clean install
. Find the distribution intools-distribution/modules/ballerina-tools/target
folder.
npm install
- Installs all npm dependencies.npm run clean
- Deletes the/dist
(distribution folder) in the web module.npm run build
ornpm run webpack
- To build the web module.npm run dev
- To start development server with hot deployment. Go to http://localhost:8080 or http://127.0.0.1:8080 afterwards.npm run test
- Executes tests. The tests requires the composer service to run.npm run lint
- Run eslint on the code to find potential problems in the code.
The Composer is included in the full distribution of Ballerina Tools Distribution, which you can download from www.ballerinalang.org. After you unzip it, navigate to its /bin
directory in the command line, and enter the following command:
For Windows
composer.bat
For Unix/Linux
./composer
The command line will display the URL you can use to access the Composer in your browser.
For complete instructions on creating your integrations and using the Composer, see the Ballerina documentation.