Example: Azure

In this example we will demo how to deploy SOAJS by leveraging a Kubernetes cluster running on Azure. You need the following:

  • Create a kubernetes cluster using the Azure console
  • Create a mongo cluster using mongoDB cloud.
  • SOAJS Installer. click here to learn more


Installation steps

1- you need to create a configuration file as follow:

SOAJS remote installer configuration example
{
  "mongo": {
    "external": true,
    "profile": {
      "servers": [
        {
          "host": "cluster0.33333.gyp.mongodb.net"
        }
      ],
      "credentials": {
        "username": "demo",
        "password": "ed7edededd"
      },
      "protocol": "mongodb+srv://",
	  "URLParam": {
		"retryWrites": true,
		"writeConcern": {
			"w": "majority"
		},
		"useUnifiedTopology": true
	  }
    }
  },
  "kubernetes": {
    "ip": "35.232.82.201",
    "port": 443,
    "token": "dhwbd87y2ed87gcxwe87dx278gdx78egd87d872gcygwxdh287RLNCkhjnbI9u5P4jIiKyn6WWHPRIsJ2GTxT_f66UKv2yxYgcOAn0_6Kd4nXjvAHBJ2LDZAmRbCYSFmfv5QyX7Tok1BSeszI72nwduxg278dgx78egdcx87wgd78ewgd78gwd78gxew78dg78ewd8ew"
  },
  "nginx": {
    "domain": "soajs.org",
    "apiPrefix": "dashboard-api",
    "sitePrefix": "dashboard",
    "deployType": "LoadBalancer",
    "sslType": "pvc",
    "httpPort": 80,
    "httpsPort": 443
  },
  "owner": {
    "email": "team@soajs.org",
    "username": "owner",
    "password": "password"
  }
}

2- Run the following command:

remote installer install command
sudo soajs remote-installer install /..PATH_TO../myconfigfile.json

3- Access SOAJS console.

You need to change the DNS of your domain and then open your browser and go to http://sitePrefix.domain:httpPort/, in the above configuration example it will be: http://dashboard.soajs.org:30080/