# Console UI

The built-in Console UI with help you manage your templates and check out the rendered files.

{% hint style="info" %}
It is super helpful for every environment.

However, it is recommended to use the Console UI **internally**. Requiring users to connect to the internal VPN is a good choice.

Don't expose DocKing to the outside world.
{% endhint %}

### Enable Console

From `.env`, set this env to true:

```
DOCKING_CONSOLE_ENABLED=true
```

Additionally, you might want to set a password:

```
DOCKING_CONSOLE_PASSWORD=SETH
```

### The Path

* Path: `/console`
  * On local: `http://localhost:8000/console`

### The Looks

{% tabs %}
{% tab title="Dashboard" %}

<figure><img src="https://4001454994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35WpFfbPjsx7AT7mEjwk%2Fuploads%2FN2w2uuJLsobaIcYKWiyK%2Fimage.png?alt=media&#x26;token=aa80037a-1f64-4f07-be03-20fbb7f120c2" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="View/Edit Template" %}
With preview options. Note: save before preview.

<figure><img src="https://4001454994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35WpFfbPjsx7AT7mEjwk%2Fuploads%2FxDFnKCBYgyf0zhiaXuV0%2FScreenshot%202023-05-12%20at%2022.36.00.png?alt=media&#x26;token=1ef1d1c1-3480-46f0-9c01-856c0c08d099" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="View Files" %}

<figure><img src="https://4001454994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35WpFfbPjsx7AT7mEjwk%2Fuploads%2Fh9QsWVs2kGCrXBbuhRPg%2FScreenshot%202023-05-12%20at%2023.03.14.png?alt=media&#x26;token=8666fc5f-9fe7-4d4a-a22a-14d67ae2fcbb" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### The Basic Authentication

From [Environment Variables](https://docking.shipsaas.tech/getting-started/environment-variables), you can set the `DOCKING_CONSOLE_PASSWORD` - a fixed password in order to login into the Console UI.

It is recommended to set it in staging or production.

A login page will be shown on the first access.&#x20;

<figure><img src="https://4001454994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35WpFfbPjsx7AT7mEjwk%2Fuploads%2FNC8ZKxMJAcCgPbOXNrRL%2Fimage.png?alt=media&#x26;token=1ce21bdf-f493-435b-a367-cc4643913bb8" alt="" width="375"><figcaption></figcaption></figure>

### The Features

* CRUD Document Templates
  * With preview HTML
    * Good to preview dynamic variables rendering
    * Bad for styling preview
  * With preview PDF (browser printing preview or render a REAL PDF mode)
* Listing all rendered files
