[data-reveal]{opacity:1!important;transform:none!important}
AntelopeJS DMS
DocumentationDashboard

Dashboard

How the module puts the DMS dashboard online beside the API, from the same repository.

A DMS is two services on AntelopeJS Cloud: the API, built by the AntelopeJS recipe, and the dashboard, built by the frontend.Dockerfile at the root of the repository, as the DMS starter ships it. The module puts both online from the one repository.

Where it comes from

The project has a dashboard when the work tree the module publishes has frontend.Dockerfile at its root. Its port is the first port of the last EXPOSE of that file, 3000 when it states none. AntelopeJS Cloud runs no service on a port outside 1024 to 65535. For such a port, the plan says so and creates no dashboard.

When the module creates it

  • First-run setup. For a project the plan creates, the plan lists a Dashboard line. The apply creates the service dashboard in Production once the app has its address and before the stages, so that each stage AntelopeJS Cloud creates with the services of Production gets its own. The service builds the same repository with frontend.Dockerfile, listens on its port, and is open to the internet on an address of its own. A project the plan links keeps the services it has.
  • A project set up before. On the Environments page, an environment that runs no dashboard offers Add the dashboard. The action does the same for that environment, after a dialog says so.
  • Running it again. An environment that runs a dashboard keeps it. One without an address gets its port and its address. One with an address is left as it is.

Which service is which

The one service that frontend.Dockerfile builds is the dashboard, even when it is the only service that is not a database: the environment then runs no app. Otherwise one service that is not a database is the app. Of several, the dashboard is the one whose settings on AntelopeJS Cloud name a Dockerfile. When AntelopeJS Cloud does not say what builds a service, the dashboard is the one named dashboard.

Everything the module says of "the app", its port, its address and the database connections, means the API service.

What it needs

  • An AntelopeJS Cloud that knows the Dockerfile of a repository service.
  • The @antelopejs/cloud-sdk release that creates such a service.