Getting Started

Sign up for an EDJX Account

Create Serverless Applications

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

Sample EDJX serverless Rust functions are available in the EDJX Rust source code repo.
We advise you to clone this repo when using the EDJX CLI to build and deploy functions.
See also EDJX Library SDK for Rust.

Create an Application

To create an application:

  1. Click Main Menu  Applications.

  2. 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.

See:

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.

      If you need to create a .wasm file, use the EDJX CLI to build one.
      See the example on the function build page if you need help creating a .wasm file.
  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.

See:

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 Main Menu  Dashboard  on the NUMBER OF 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.

See:

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.

See:

Object Storage

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.

See:

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.