VS Code Extension
The EDJX Toolkit is an open-source extension built for Visual Studio Code (VS Code) editor. Using this extension, you can develop and deploy serverless applications that use the EdjPlatform.
Prerequisites
-
For Rust environment,
-
For C++ environment,
-
C compiler and linker
Make sure you have the required permissions to add or modify resources in the EdjPlatform, which are based on group permissions assigned to each user group. See Groups for details.
1. Install the Extension
To install the extension:
-
Open VS Code.
-
In the sidebar, click the Extensions icon.
-
In the search box, enter edjx-vscode, and click Install.
-
Restart the editor.
The EDJX extension displays in the sidebar.
2. Connect to the EdjPlatform
To connect to the EdjPlatform:
If you are not deploying an application to the default EDJX environment, make sure that you change the environment before you proceed. |
-
Sign up for an EDJX account.
Create your login credentials here. -
Open VS Code.
-
In the sidebar, click the EDJX extension icon.
-
Click Connect to EDJX button.
-
Enter your username and password in the prompt.
You are now connected to the EdjPlatform as displayed in the following image.
+
3. (optional) Switch the Organization
To switch the organization:
-
Select a profile in the Profile panel.
-
Click the organization from the list when prompted.
4. Create an Application
-
Hover over the Application panel.
-
Click the Create Application (+) icon.
-
Enter a name for the application you are creating.
The application displays in the Application panel.
5. Add a Function
Rust
-
Open VS Code.
-
Click the EDJX Extension.
-
In the Profile panel, click Connect to EDJX.
If you are already logged in, proceed to the next step. -
Hover over an Application and click the + icon.
-
Follow the prompts.
The function saves under the selected application, and a new window opens with the project files displayed.
C++
-
Open VS Code.
-
Click the EDJX Extension.
-
In the Profile panel, click Connect to EDJX.
If you are already logged in, proceed to the next step. -
Hover over an Application and click the Add Function icon.
-
Follow the prompts.
The function saves under the selected application, and a new window opens with the project files displayed.