How to Create a Ballerina Integrator project in vscode?

278 Views Asked by At

I am learning Ballerina programming language and I have to do Integrations with Ballerina,I have installed and trying everything with VSCode only. But unable to create a Ballerina Integrator Project with VSCode, it shows message like Successfully created message only but project is not available in the specified folder. Please someone help me to do further.

2

There are 2 best solutions below

2
On

You can create a new project from VSCode Dashboard by entering CMD+SHIFT+P (on mac).

  1. Click on Ballerina Integrator Dashboard
  2. Click on Create a new Project dashboard
  3. Enter the project name project name
  4. The same as above enter a name for the module.
  5. It will open a folder location where you need to save the project.
  6. Click to create the project.
  7. Then the project will open with a new window in VS Code.

Alternatively, you can create a new project from your project terminal and open it in the VSCode.

  1. Go to the desired location in the terminal and type below to create the project.

ballerina new [project-name]

eg: ballerina new project1

  1. Navigate to the project directory and add a module using the following command.

ballerina add [module-name]

ballerina add module1

  1. You can open the project from the VSCode.

Please refer [3]

[3] - https://ei.docs.wso2.com/en/latest/ballerina-integrator/get-started/quick-start-guide/

1
On

Make sure you are using the latest Ballerina Integrator plugin (current 0.12.3) as well as the correct ballerina version (1.0.2 or 1.0.3).