Create an XDN application with an XDN web service


This tutorial shows you how to perform the following task:

  • Run a stateful application on XDN platform.

When it's done, you'll be able to open a browser, enter your domain name, and interact with your first XDN application.



1. Use our XDN web service to deploy an XDN application

We are running an XDN web service on a small scale XDN cluster with 2 XDN nodes. The XDN web service can be used by people who are interested in our service to get started with XDN quickly.

Open the XDN demo page (shown below) to deploy an XDN application on our platform, and interact with the application after created successfully.

Fig: XDN web service creation configuration page.

The meaning of the fields are explained as follows.

  • Username: your XDN username.
  • Domain: each account comes with a list of domain names. XDN provides a default domain name (xdn-service.xyz) for users to start with. Users can add their own domains in the future as described in Delegate your domain name to XDN
  • Docker: this is the XDN application. Each docker comes with a unique registered Docker name, a Docker registry URL (e.g., a Docker hub URL), and some environment variables (e.g., port mapping like 80:3000). Note that the name shown in the list of demo page is not the Docker name registered in XDN. The registered Docker name must be unique within XDN, while the name doesn't have to be. We provide a list of ready-to-use Docker apps for you to get familiar with. Please check the following list for more details.

Here is a list of dockerized XDN applications that we have made available for you to try out.

List of XDN Applications
# Name Docker Name Docker URL Language
1 WebCounter(NodeJS) demo oversky710/xdn-nodejs-counter-app NodeJS

After filling out all required fields, click "Create" to create your first XDN service. If created successfully, your application will be assigned with a subdomain name of the selected domain. The subdomain name is also called service name in XDN.

  • Service name: the name for XDN to uniquely identify the service being created. It is a subdomain of the domain you choose for your service, and it is automatically generated by concatenating your username, my_xdn_account, your Docker name, and the chosen domain name. For example, if you use the default domain name xdn-service.xyz, the service name will be my_xdn_account.docker_name.xdn-service.xyz.