Getting Started

Create Serverless Applications

EDJX’s serverless platform executes your serverless applications, to target WebAssembly (WASM) and deploys that code to the web, instantly. EDJX currently supports Rust and C++ applications.

Rust Developers

Sample EDJX serverless Rust functions are available in the EDJX Rust Example code repo.
See also EDJX SDK Documentation for Rust and Create a .wasm File Written in Rust.

C++ Developers

Sample EDJX serverless C++ functions are available in the EDJX C++ Example code repo.
See also EDJX SDK Documentation for C++ and Create a .wasm File Written in C++.

Create an Application

To create an application:

  1. Sign in to the EDJX Console

  2. Click Main Menu  Applications.

  3. Enter the name of the application you want to create, and then click Save.
    A status popup appears in the upper-right of the screen.
    If successful, you are redirected to the Application Attributes page.

When you create an application, you must be in an Organization view.


Create a Function

To create a function:

  1. Under the Functions tab, click Create Function.
    A dialog displays.
    function create

  2. Do the following:

    • Select the TRIGGER type.

    • Select a RUNTIME value.

    • Select the coding LANGUAGE.

    • Enter a NAME for the function.

    • Select the MEMORY ALLOCATED for the function.

    • Select the TIMEOUT value.

    • Click the WASM FILE button to bring up the explorer window and select the WASM file to be uploaded.

  3. Click Create.
    The function is built and deployed, and then added to the Functions table/card view.

After clicking Create, only the memory allocated and timeout settings can be modified.


If you need to create a .wasm file, you can use the EDJX CLI to build one.
See the example on the function build page if you need help creating a .wasm file.

Build and Deploy your Function

When you create and deploy your function, you must be in the organization view that the function will reside.

To create and deploy your function:

  1. Navigate to the Function Attributes page.

    • Click Main Menu  Applications  click on an application name  click on a function (or hover over and click the Edit icon)

    • Click menu:Main Menu[Dashboard > on the APPLICATIONS card, click the Active > click on an application name > click on a function.

      To edit the function, you must be a member of the listed organization.
  2. Drag and drop the .wasm file on to the area or click in the area and then select the file from the explorer window.

    function upload tab

    The Upload tab displays the Deploy Code button.

    function deploy button

    The function is automatically saved and deployed.

  3. Click the Copy icon to copy the URL to your clipboard.

  4. Paste the URL in a supported browser to verify that the function was deployed successfully.


Enable the EDJX CDN

The EDJX Platform can serve as your content delivery network (CDN), making the transmission of your content more efficient for your customers.


Connect DNS Services

Adding a domain to your account lets you manage the domain’s DNS records with the EDJX Platform.
A DNS record can be proxied by the EDJX server to improve web performance.

Configuration is dependent on which domain type you want to create: Full or CNAME.


Serverless Database

The EDJX Platform can operate as your decentralized object storage to store your files within buckets.
A bucket is a logical folder within an organization.


Create a Bucket

When you add your bucket, you must be in the organization view that the bucket will reside.

To create a bucket:

  1. Switch to the organization associated with the bucket.

  2. Click Main Menu  Buckets.
    The Buckets page displays.

  3. Click Create Bucket.

  4. Enter a NAME, select the MAKE PUBLIC checkbox to make the bucket
    public, and select TRACK VERSIONS to enable version tracking.

Bucket tracking cannot be enabled/disabled after creation.

Upload Files to Your Bucket

When uploading files, you must be in the organization view that the bucket resides.

To upload a file to your bucket:

  1. Click Main Menu  Buckets.
    The Buckets page displays.

  2. Click in the row for the bucket you want to edit.
    The Bucket Attributes page displays.

  3. Click Upload File.

  4. Select the file you want to upload and optionally, the node you want to pin the file to and whether you want to enable Notarization (disabled by default).

  5. Click Upload.
    If successful, a green confirmation window briefly displays in the top-right corner of the screen.
    The Bucket Attributes page refreshes with the file presented under the Files tab.