--- title: Introduction project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/introduction/ updated: 2026-11-20T06:40:16.362Z --- # Introduction > What Total.js TAS is, what it is made of and where to start. > **Note:** Total.js TAS is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [TAS page](https://www.totaljs.com/tas/) on totaljs.com. Total.js TAS (Total.js Application Solution) is a ready base for business applications such as intranet tools, ERP and CRM. You build the app in your browser: you design the data, the screens and the logic, and TAS keeps everything in a PostgreSQL database. ![The TAS admin screen with two app tiles and the building blocks](/files/JaswvQ2H860f.webp) ## The building blocks - **Databases**: you design tables with your own columns, and you browse and edit their rows. See [Databases](../databases/). - **Flows**: you build the logic of the app visually with Total.js Flow. Every database becomes a component that you can use in a flow. See [Flows](../flows/). - **User interface**: you design the pages of the app with the page designer of UI Builder. See [Pages](../pages/). - **Navigation**: you add the items that open your app for its users. See [Navigation](../navigation/). - **UI components** and **Files**: your own page components and the files your app uses. - **Settings**: the name of the app, the Total.js Message Service, the Total.js API and the connection to Total.js OpenPlatform. Several TAS apps can share one PostgreSQL database. Each app keeps its own data. See [Run several apps on one database](../../recipes/several-apps-one-database/). ## What to read next 1. [Installation](../installation/) puts TAS on your server. 2. [First sign-in](../first-sign-in/) explains the default account. 3. [The admin screen](../admin-screen/) shows where everything is. 4. [Build your first app](../first-app/) takes you from a database to a page that your users open. --- title: Installation project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/installation/ updated: 2026-11-20T06:40:16.362Z --- # Installation > Install Total.js TAS from source, connect it to PostgreSQL and start it. > **Note:** Total.js TAS is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [TAS page](https://www.totaljs.com/tas/) on totaljs.com. You get the TAS source code from Total.js with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) license. You also need: - [Node.js](https://nodejs.org) - a PostgreSQL server with an empty database for TAS ## Install and start **1.** Create an empty database in PostgreSQL, for example `tas`. **2.** Open the folder with the TAS source code and install the dependencies: ```bash npm install ``` **3.** Open the `config` file and set the connection string of your database: ```text database : postgresql://user:password@hostname:5432/tas ``` **4.** Start TAS: ```bash npm start ``` **5.** Open `http://127.0.0.1:8000` in your browser and sign in. See [First sign-in](../first-sign-in/). **6.** Open **Settings**, check the **Website name** and select **SUBMIT**. See [Settings](../settings/). TAS creates its tables on the first start, so you do not run any SQL yourself. ## Use another port `npm start` uses port 8000. To use another port, start TAS with the port number: ```bash node index.js 8080 ``` ## Install the bundled version The source code also contains a ready bundle, `--bundles--/app.bundle`. Use it when you do not want to change the source code: **1.** Create a new folder with the files `index.js`, `config` and `package.json` from the source code. **2.** Create a `bundles` folder in it and copy `app.bundle` there. **3.** Set the connection string in `config`, then run `npm install` and `npm start` as above. The bundled version keeps its data files in the hidden `.src` folder. See [Data locations](../../reference/data-locations/). ## Keep your server safe - Sign in and change the default credentials as soon as TAS runs. See [Change credentials](../change-credentials/). - Use HTTPS and restrict who can reach the server when TAS is available over a network. --- title: First sign-in project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/first-sign-in/ updated: 2026-11-20T06:40:15.805Z --- # First sign-in > Sign in with the default account that TAS creates on its first start. On its first start, TAS creates one administrator account with a random user name and password. ## Sign in **1.** Open TAS in your browser. The sign-in page shows a box called **Default account:** with the **User name** and the **Password**. **2.** Select **Fill in the form**, or type both values yourself. **3.** Select **Sign in**. After the first successful sign-in, the sign-in page hides the default account. Write the values down, or better, change them right away. See [Change credentials](../change-credentials/). ![The sign-in page](/files/Jaswvu2f860f.webp) ## If you lose the password Stop TAS, delete the file `databases/memorize_account.json` and start TAS again. TAS creates a new default account and shows it on the sign-in page. Your databases, flows and pages stay as they are. ## Sign in through OpenPlatform When you connect TAS to Total.js OpenPlatform, the users sign in through OpenPlatform instead of the TAS sign-in page. See [Connect to OpenPlatform](../openplatform/). --- title: The admin screen project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/admin-screen/ updated: 2026-11-20T06:40:12.891Z --- # The admin screen > The parts of the TAS admin screen: menu, tabs and the Home page. After you sign in, TAS shows the admin screen. ![The Home page with the app tiles and the tools](/files/JaswvQ2H860f.webp) ## Menu The menu on the left has three parts: - At the top, the items of your app. You create them in [Navigation](../navigation/). Selecting one opens that part of your app. - In the middle, the tools: **User interface**, **Flows**, **Databases**, **Navigation**, **UI components**, **Files** and **Settings**. - At the bottom, **Refresh**, **Change credentials** and **Logout**. ## Home **Home** shows the same items as tiles. The tiles of your app have a light blue background. ## Tabs Each tool or app item opens in its own tab at the top. Select a tab to go back to it, and select the **×** on a tab to close it. **Home** stays open. --- title: Build your first app project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/first-app/ updated: 2026-11-20T06:40:15.296Z --- # Build your first app > The whole path from a database to a page that your users open. This page shows the order of the work. Each step links to its own page. **1.** Create a database with the columns you need, for example `Customers` with an email and a phone. See [Databases](../databases/). **2.** Add a few rows to it. See [Browse and edit data](../database-data/). **3.** Design a page in **User interface** and save it with **SAVE**. See [Pages](../pages/). **4.** Create a navigation item, for example `Customers`. See [Navigation](../navigation/). **5.** Open the **User interface** flow, connect the navigation item to the page and select **APPLY**. See [Show a page to your users](../show-page/). **6.** Select the item in the menu or on **Home**. TAS opens your page. To read or change data from your own logic, use the database components in a flow. See [Use databases in a flow](../database-components/). --- title: Databases project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/databases/ updated: 2026-11-20T06:40:14.934Z --- # Databases > Create, change, clone and remove the databases of your app. In TAS, a database is one table with your own columns. TAS creates the table in PostgreSQL for you and keeps it in step with the columns you define. ![The Databases list with two databases in the Sales category](/files/Jaswvj2W861f.webp) Each database shows its identifier, for example `db792`. Databases with the same **Category** are listed together. ## Create a database **1.** Open **Databases** and select **Create**. **2.** Enter the **Name**. Optionally choose a **Category**, an **Icon** and a **Color**. **3.** Under **Custom columns**, select **Add** for each column and fill in: - **Path**: the column name in the database, in lower case - **Type**: **String**, **Number**, **Boolean** or **Date** - **Label**: the name people see - **Required**: a new row cannot be saved without a value in this column **4.** Select **Save** for the column, and **SUBMIT** for the database. ![The Update database form with five custom columns](/files/Jaswvl2X860f.webp) Every database also has two **Primary columns** that you cannot remove: **Identifier** (`id`) and **Name** (`name`). TAS also stores the creation date of each row. Some words cannot be column names, for example `id`, `name`, `table`, `number` or `json`. TAS tells you when you use one. See [Database tables](../../reference/database-tables/). ## Change a database Select the gear icon of the database and then **Edit**. You can rename it, add, remove and reorder columns, and change their types. When you select **SUBMIT**, TAS changes the PostgreSQL table to match. Removing a column also removes its data. ## Clone or remove a database Select the gear icon and then **Clone** or **Remove**: - **Clone** creates a copy of the structure, named with "(cloned)". The rows are not copied. - **Remove** deletes the database and its table with all rows. This cannot be undone. Every change also updates the database components in your flows. See [Use databases in a flow](../database-components/). --- title: Browse and edit data project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/database-data/ updated: 2026-11-20T06:40:14.413Z --- # Browse and edit data > View, filter, add, edit, copy and remove the rows of a database. Select a database in **Databases** to open its rows in a new tab, or select its gear icon and then **Browse data**. ![The rows of the Customers database](/files/Jaswvd2S861f.webp) ## Find rows - Type in the **Filter** field under a column to filter by it. - Select a column header to sort by it. - Use the arrows at the bottom to move between pages. ## Add or edit a row **1.** Select **Create** for a new row, or select a row to edit it. **2.** Select a value to change it. Select the box of a **Boolean** column to switch it, and select a **Date** value to pick a date. **3.** Select **Save**. ![A row opened for editing](/files/Jaswvg2T860f.webp) **Copy JSON** copies the row as JSON. The copy icon next to **ID** copies the identifier. ## Copy or remove rows Select the boxes of the rows you need, then: - **Copy to clipboard** copies them for Excel (**To Excel**) or as CSV (**To CSV**). - **Remove** deletes them after you confirm. --- title: Files project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/files/ updated: 2026-11-20T06:40:15.296Z --- # Files > Upload, download and remove the files that your app uses. **Files** lists every file uploaded to your app, with its name, extension, size and, for images, the width and height. ![The file browser with two files](/files/Jaswvo2a861f.webp) ## Upload a file Select **Upload** and choose one or more files. Each file can have up to 5 MB. ## Use a file - Select **Download** in the **Preview** column to download the file. - Select the copy icon next to the name to copy the address of the file. The address of a file looks like this and works without signing in: ```text https://your-tas-server/download/Jasrc21c561f-ku0mdq.png ``` ## Remove files Select the boxes of the files and select **Remove**. --- title: Flows project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/flows/ updated: 2026-11-20T06:40:16.362Z --- # Flows > Create and manage the flows that hold the logic of your app. A flow is a FlowStream of Total.js Flow. You build it in a visual designer by connecting components. TAS runs every flow on the server. ![The Flows list](/files/Jaswvx2i861f.webp) ## The User interface flow TAS always has one flow called **User interface**. It connects your navigation items to your pages. You cannot rename, clone or remove it. See [Show a page to your users](../show-page/). ## Create a flow **1.** Open **Flows** and select **Create**. **2.** Enter the **Name**. Optionally choose a **Category**, an **Icon** and a **Color**. **3.** Select **SUBMIT**. Flows with the same category are listed together. ## Open the designer Select a flow to open its designer in a new tab. You can also select the gear icon and then **Open designer**. ![The designer of a flow with three connected components](/files/Jaswvz2j860f.webp) In the designer: **1.** Drag a component from the list on the left onto the area on the right. **2.** Connect an output of one component to an input of another by dragging between them. **3.** Double-click a component to change its settings. **4.** Select **APPLY** and then **Continue** to save the flow and run it. The **Databases** group of the list contains one component for every database of your app. See [Use databases in a flow](../database-components/). ## Edit, clone or remove a flow Select the gear icon of a flow: - **Edit** changes the name, category, icon and color. - **Clone** creates a copy named with "(CLONED)". - **Remove** deletes the flow. --- title: Use databases in a flow project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/database-components/ updated: 2026-11-20T06:40:13.748Z --- # Use databases in a flow > Read and write the rows of a database from a flow with its database component. Every database of your app is also a component in the flow designer. You find them in the **Databases** group of the component list, with the name and icon of the database. When you create, change or remove a database, TAS updates these components in all flows. ## What the component does A database component has one input and two outputs: - **Input**: a message arrives and the component runs its code. - **Output**: the result of the code. - **Error**: the error, when the code fails. The component shows the table it works with, for example `db.db539792`. ## Write the code Double-click the component in the designer to open its settings. The settings contain one piece of JavaScript. Select **Read me** to see the columns of the database. ![The settings of the Customers component](/files/JaswvZ2P860f.webp) The code returns the result of one of these methods: - `READ()` returns one row. - `FIND()` returns a list of rows. - `LIST()` returns a list of rows split into pages. - `INSERT(data)` inserts a row and returns its `id`. - `UPDATE(data)` updates rows. - `REMOVE()` removes rows. Use each method on its own line. You can add conditions to it, for example `.where('active', true)`. `INSERT()` and `UPDATE()` keep only the values of known columns and ignore the rest. `INSERT()` creates the `id` when the data has none. `data` is the data of the incoming message. With a [data view](../data-views/), `data.query` holds the query string of the request. Some examples: ```js // all rows return FIND(); ``` ```js // one row by the "id" in the query string return READ().where('id', data.query.id); ``` ```js // active customers only return FIND().where('active', true); ``` After you change the code, select **APPLY** in the settings and then **APPLY** in the designer. See [Return database rows as JSON](../../recipes/rows-as-json/) for a complete example. --- title: Data views project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/data-views/ updated: 2026-11-20T06:40:13.245Z --- # Data views > Publish data from a flow at its own URL with the View endpoint and View response components. A data view gives a flow its own URL. A request to that URL starts the flow, and the flow sends back JSON. You build it with two components of the **Databases** group: - **View endpoint** receives the request. Its output is called **Request**. - **View response** sends the data it receives back as JSON. Its input is called **Response**. ## Create a data view **1.** Open a flow in the designer. You cannot use these two components in the **User interface** flow. **2.** Drag **View endpoint** onto the area. Double-click it if you want to change its **View name**. **3.** Add the components that produce the data, for example a [database component](../database-components/). **4.** Drag **View response** onto the area and connect the last component to it. **5.** Select **APPLY** and then **Continue**. ## The address of a data view The address is made of the ID of the flow and the ID of the **View endpoint** component: ```text https://your-tas-server/// ``` TAS records every data view with its full address in the `tbl_view` table of your PostgreSQL database: ```sql SELECT name, url FROM tbl_view WHERE isremoved = false; ``` The designer also shows the ID of a component in its top right corner when you select the component. The message that **View endpoint** sends holds the query string in `query`. For example, `?id=123` arrives as `data.query.id` in a database component. Make sure every path of the flow reaches **View response**. When the flow stops before it, for example on the **Error** output of a component, the request ends with `408: Request Timeout`. --- title: Pages project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/pages/ updated: 2026-11-20T06:40:17.976Z --- # Pages > Create, design, export and import the pages of your app. The pages of your app are designed in **User interface** with the page designer of Total.js UI Builder. ![The User interface list with one page](/files/JaswwA2v860f.webp) ## Create a page **1.** Open **User interface** and select **Create**. **2.** Choose a **Type**. Each type is a template that the new page starts from. TAS comes with **Default template**. **3.** Enter the **Name**. Optionally choose a **Category**, an **Icon** and a **Color**. **4.** Select **SUBMIT**. The designer opens in a new tab. ![The Create page form](/files/JaswwD2w861f.webp) ## Design a page ![The page designer with a headline and a paragraph](/files/JaswwF2x860f.webp) **1.** Drag components from the list on the left onto the layout. **2.** Change their content and settings. **3.** Select **SAVE**. A page is stored only when you select **SAVE**. A saved page becomes a component of the **User interface** flow, in the **User interface** group. See [Show a page to your users](../show-page/). The **Flow** group of the designer has **Flow Input** and **Flow Output**. They add inputs and outputs to the page component in the **User interface** flow. To open the designer again, select the page in the list. ## Other actions Select the gear icon of a page: - **Open designer** opens the page in the designer. - **Clone** creates a copy named with "(CLONED)". - **Export** gives you the design of the page as a JSON file. - **Remove** deletes the page after you confirm. ## Import a page Select **Import** and choose a JSON file that you exported from TAS. Open the imported page in the designer and select **SAVE** before you use it in a flow. ## Templates **Templates** lists the templates that **Create** offers as **Type**. You can remove the ones you do not need. --- title: Navigation project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/navigation/ updated: 2026-11-20T06:40:16.994Z --- # Navigation > Create the items that open your app for its users. Navigation items are the entry points of your app. Each item appears at the top of the menu and as a tile on **Home**. ![The Navigation list with two items](/files/Jasww52q861f.webp) ## Create an item **1.** Open **Navigation** and select **Create**. **2.** Enter the **Name**. Optionally choose an **Icon** and a **Color**. **3.** Select **SUBMIT**. The item now appears in the menu and on **Home**, and it becomes a component of the **User interface** flow, in the **Navigation** group. A new item shows `404: Not Found` until you connect it to a page. See [Show a page to your users](../show-page/). ## Edit or remove an item Select the pencil icon of an item to change it, or select its gear icon for more actions. Removing an item also removes its component from the **User interface** flow. --- title: Show a page to your users project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/show-page/ updated: 2026-11-20T06:40:18.713Z --- # Show a page to your users > Connect a navigation item to a page in the User interface flow. A navigation item opens a page only when you connect them in the **User interface** flow. **1.** Create the page and select **SAVE** in the designer. See [Pages](../pages/). **2.** Create the navigation item. See [Navigation](../navigation/). **3.** Open **Flows** and select **User interface**. **4.** Drag the navigation item from the **Navigation** group onto the area. **5.** Drag the page from the **User interface** group onto the area. **6.** Connect the **Start** output of the navigation item to the **No data** input of the page. **7.** Select **APPLY** and then **Continue**. ![The User interface flow with a navigation item connected to a page](/files/JaswwN33860f.webp) Now select the item in the menu or on **Home**. TAS opens the page in a new tab. --- title: UI components project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/ui-components/ updated: 2026-11-20T06:40:19.031Z --- # UI components > Keep your own page components in TAS, organised in component databases. **UI components** holds your own components for the page designer. They are organised in folders: - a component database, for example `demo` - in it, one folder per component, for example `clock` - in each component folder, the files `editor.html`, `render.html` and `settings.html` ![A component folder with its editor.html file](/files/JaswwQ36861f.webp) ## Create a component **1.** Open **UI components** and select **Create** and then **Create database**. Enter a name in lower case, with the letters a to z only. **2.** Open the new database and select **Create** and then **Create component**. Enter a name in lower case. **3.** Open the component folder and select **Create** and then **Create editor.html**. TAS adds a working example component that you can change. Use **Create render.html** and **Create settings.html** in the same way when your component needs them. **Upload file** adds other files. ## Edit, rename and remove Select a file to edit it. Right-click a folder or a file for **Rename**, **Clone**, **Remove** and the links to copy. ## Back up and restore In a component database, select **Options**: - **Download database** downloads the whole component database as a `.zip` file. - **Upload .zip database** restores a downloaded `.zip` file. ## The links TAS publishes each component database at two addresses: ```text https://your-tas-server/ui/demo.json https://your-tas-server/ui/demo.js ``` The `.json` address lists the editor files of the components, and the `.js` address contains the rendered components. **Copy link**, **Copy link for editor** and **Copy link for render** copy these addresses. The folder that holds the component databases is set in [Settings](../settings/) under **UI components**. --- title: Settings project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/settings/ updated: 2026-11-20T06:40:18.359Z --- # Settings > Configure the name of the app and its connections in Settings. Open **Settings** to configure the app. Select **SUBMIT** at the bottom to save your changes. ![The Settings screen](/files/JaswwJ30861f.webp) ## Configuration - **Website name**: the name of the app. It appears in the title of **Home** and on the sign-in page. It is required. ## TMS The Total.js Message Service lets other apps publish data, subscribe to events and call remote procedures in TAS. - **Enable TMS**: turns the service on. Its address appears under the box. - **Security token**: a token that protects the communication. **Generate** creates one. ## Total.js API - **Access token**: your token for the Total.js API service, which creates text or images with AI, sends SMS messages and more. You get the token on the Total.js Platform. ## Total.js OpenPlatform - **Request token** and **Response token**: the tokens from the OpenPlatform registration of this app. See [Connect to OpenPlatform](../openplatform/). ## UI components - **Minify HTML**: minifies the HTML files of your UI components. - **Directory**: the folder for the component databases, inside the `databases` folder. The default is `/fs-db/components/`. See [UI components](../ui-components/). --- title: Change credentials project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/change-credentials/ updated: 2026-11-20T06:40:13.245Z --- # Change credentials > Change the name, login and password of the administrator account. Change the default credentials right after your first sign-in. **1.** Select **Change credentials** in the menu. **2.** Change the **Name** and the **Login**. **3.** Enter a new **Password**. Keep the field empty if you do not want to change it. **4.** Select **SUBMIT**. ![The Change credentials form](/files/JaswvU2K861f.webp) You stay signed in. A session lasts one month. When you are done, select **Logout** to end it. --- title: Connect to OpenPlatform project: TAS version: 10.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/guides/openplatform/ updated: 2026-11-20T06:40:16.994Z --- # Connect to OpenPlatform > Run TAS inside Total.js OpenPlatform so that your users sign in there. TAS is designed to work with Total.js OpenPlatform. When it is connected, users open TAS from OpenPlatform and OpenPlatform decides who may use which part of it. ## Connect TAS **1.** Open **Settings** in TAS. Under **Total.js OpenPlatform** you find the address of the app description, for example: ```text https://your-tas-server/openplatform.json ``` **2.** In OpenPlatform, import the app with this address. **3.** Copy the request token and the response token from the app registration in OpenPlatform. **4.** In TAS, enter them in **Request token** and **Response token** and select **SUBMIT**. TAS signs you out as soon as you save both tokens. From then on, open TAS through OpenPlatform. The users sign in in OpenPlatform, not on the TAS sign-in page. ## Permissions The app description lists one permission for each tool: **Components**, **Databases**, **Files**, **Flows**, **Navigation**, **Settings** and **UI**. It also lists every saved page. In OpenPlatform you give users the permissions they need. --- title: Configuration file project: TAS version: 10.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/reference/config-file/ updated: 2026-11-20T06:40:19.031Z --- # Configuration file > The keys of the config file in the TAS folder. The `config` file in the TAS folder holds the settings that TAS needs before it can reach its database. Each line is a key, a colon and a value. ```text name : TAS database : postgresql://user:password@hostname:5432/tas ``` | Key | Meaning | |---|---| | `name` | The name of the app until you save **Website name** in [Settings](../../guides/settings/). | | `database` | The connection string of the PostgreSQL database. | Restart TAS after you change the file. All other settings are stored by TAS itself. See [Stored settings](../stored-settings/). --- title: Stored settings project: TAS version: 10.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/reference/stored-settings/ updated: 2026-11-20T06:40:19.031Z --- # Stored settings > Where TAS keeps its settings and the addresses of the designers and the CDN. TAS keeps its settings in two places. ## Settings screen What you save in [Settings](../../guides/settings/) is stored in the file `databases/memorize_data.json`, together with the identifier of the app. ## The cl_config table The `cl_config` table of the PostgreSQL database holds addresses that all TAS apps of the database share. TAS fills it on the first start: | `id` | Default value | Meaning | |---|---|---| | `floweditor` | `https://flow.totaljs.com` | The flow designer. | | `uibuilder` | `https://uibuilder.totaljs.com` | The page designer. | | `cdn` | `https://cdn.componentator.com` | The CDN of the user interface libraries. | | `uicomponents` | empty | An address from which TAS serves the components of the page designer, when set. | The browser of the person who designs flows and pages must be able to reach these addresses. To use another address, change the row and restart TAS: ```sql UPDATE cl_config SET value = 'https://flow.example.com' WHERE id = 'floweditor'; ``` --- title: Database tables project: TAS version: 10.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/reference/database-tables/ updated: 2026-11-20T06:40:19.031Z --- # Database tables > How TAS stores your databases and their rows in PostgreSQL. TAS creates its tables on the first start. ## The tables of TAS | Table | Content | |---|---| | `cl_config` | Shared addresses. See [Stored settings](../stored-settings/). | | `tbl_app` | One row for every TAS app that uses the database. | | `tbl_db` | Your databases and their columns. | | `tbl_flow` | Your flows. | | `tbl_ui` | Your pages. | | `tbl_template` | The page templates. | | `tbl_nav` | Your navigation items. | | `tbl_view` | The [data views](../../guides/data-views/) and their addresses. | | `tbl_file` | The uploaded files. | Every row of these tables has an `appid` column with the identifier of the app it belongs to. ## The tables of your databases The rows of your databases are in the `db` schema. The name of each table is `db`, the identifier of the app and the identifier of the database: ```text db.db539792 ``` Here `539` is the identifier of the app and `792` the identifier of the database. The flow designer shows this name on every database component. Every table has the columns `id`, `name` and `dtcreated` (the creation time), and one column for every custom column. ## Column types | Type in TAS | Type in PostgreSQL | |---|---| | **String** | `TEXT` | | **Number** | `NUMERIC` | | **Boolean** | `BOOLEAN` | | **Date** | `TIMESTAMP` | ## Reserved column names These words cannot be column names: `id`, `name`, `dtcreated`, `table`, `on`, `where`, `left`, `join`, `right`, `inner`, `null`, `number`, `text`, `boolean`, `object`, `over`, `primary`, `index`, `temp`, `switch`, `case` and `json`. Column names keep only the lower-case letters a to z and the digits 0 to 9. --- title: Data locations project: TAS version: 10.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/reference/data-locations/ updated: 2026-11-20T06:40:19.031Z --- # Data locations > The files and folders where TAS keeps data outside PostgreSQL. Most data of TAS is in PostgreSQL. A few things are in the `databases` folder of the TAS folder: | Path | Content | |---|---| | `databases/memorize_account.json` | The administrator account. | | `databases/memorize_data.json` | The identifier of the app and the values of [Settings](../../guides/settings/). | | `databases/fs-files/` | The uploaded [files](../../guides/files/). | | `databases/fs-db/components/` | The [UI components](../../guides/ui-components/). | The bundled version keeps the same folder in `.src/databases`. ## Back up TAS Back up both: - the PostgreSQL database - the `databases` folder The identifier of the app is in `memorize_data.json`. Without this file, TAS starts as a new app with a new identifier and does not see its old data in the database. --- title: Return database rows as JSON project: TAS version: 10.0 section: recipes language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/recipes/rows-as-json/ updated: 2026-11-20T06:40:19.031Z --- # Return database rows as JSON > Build a flow that answers a request with the rows of a database. This recipe publishes the customers of a `Customers` database at their own address. **1.** Create the `Customers` database with the columns you need. See [Databases](../../guides/databases/). **2.** Open **Flows**, select **Create**, name the flow `Customer API` and select **SUBMIT**. **3.** Open the flow. From the **Databases** group, drag **View endpoint**, **Customers** and **View response** onto the area. **4.** Connect **Request** of the view to **Input** of **Customers**, and **Output** of **Customers** to **Response** of **View response**. ![The finished Customer API flow](/files/Jaswvz2j860f.webp) **5.** Double-click **Customers** and replace the code with: ```js return FIND(); ``` **6.** Select **APPLY** in the settings, then **APPLY** and **Continue** in the designer. **7.** Find the address of the view: ```sql SELECT name, url FROM tbl_view WHERE isremoved = false; ``` **8.** Open the address in the browser where you are signed in to TAS. TAS answers with the rows: ```json [{"id":"JasoGx1cB61f","name":"Jane Doe","email":"jane@example.com","active":true}] ``` ## Return one row Change the code of **Customers** to read the `id` from the query string: ```js return READ().where('id', data.query.id); ``` Then call the address with `?id=` and the identifier of a row. Connect the **Error** output to **View response** too, so that the request also ends when the code fails. --- title: Run several apps on one database project: TAS version: 10.0 section: recipes language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/recipes/several-apps-one-database/ updated: 2026-11-20T06:40:19.031Z --- # Run several apps on one database > Run more than one TAS app on the same PostgreSQL database. Several TAS apps can use one PostgreSQL database. Each app has its own identifier and sees only its own databases, flows, pages, navigation and files. **1.** Install a second copy of TAS in another folder. See [Installation](../../guides/installation/). **2.** Use the same `database` connection string in its `config` file. **3.** Start it on another port: ```bash node index.js 8001 ``` **4.** Sign in with the default account of the new copy. See [First sign-in](../../guides/first-sign-in/). The new app starts empty, with its own default page template. Every app is listed in the `tbl_app` table: ```sql SELECT id, name, url FROM tbl_app; ``` The addresses in the `cl_config` table are shared by all the apps. See [Stored settings](../../reference/stored-settings/). To read the data of another app from a flow, query its tables directly with SQL. See [Read your data with SQL](../sql-access/). --- title: Read your data with SQL project: TAS version: 10.0 section: recipes language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/recipes/sql-access/ updated: 2026-11-20T06:40:19.031Z --- # Read your data with SQL > Query the rows of your TAS databases with any PostgreSQL client. The rows of your databases are ordinary PostgreSQL tables, so you can read them with any PostgreSQL client or reporting tool. **1.** Find the table of your database. The flow designer shows it on the database component, for example `db.db539792`. You can also list all of them: ```sql SELECT appid, id, name, 'db.db' || appid || id AS "table" FROM tbl_db; ``` **2.** Query it: ```sql SELECT name, email, credit FROM db.db539792 WHERE active = true ORDER BY name; ``` Change the structure of these tables only in **Databases**. TAS adjusts the table to the columns defined there and removes columns that it does not know. See [Database tables](../../reference/database-tables/). --- title: Using TAS project: TAS version: 10.0 section: faq language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/faq/using-tas/ updated: 2026-11-20T06:40:12.622Z --- # Using TAS > Answers to common questions about working with TAS. ## Why does a navigation item show "404: Not Found"? The item is not connected to a page yet. Place it in the **User interface** flow, connect its **Start** output to a page and select **APPLY**. See [Show a page to your users](../../guides/show-page/). ## Why is my page missing from the User interface flow? A page becomes a component only after you select **SAVE** in the designer. Pages that you imported need to be opened and saved once. ## Why does my data view never answer? The flow stops before **View response**, for example on the **Error** output of a database component. Connect every output that can end the request to **View response**. See [Data views](../../guides/data-views/). ## Can several TAS apps use one database? Yes. Each app keeps its own data. See [Run several apps on one database](../../recipes/several-apps-one-database/). --- title: Administration project: TAS version: 10.0 section: faq language: en license: Total.js Enterprise url: https://totaljs.es/docs/tas/10-0/faq/administration/ updated: 2026-11-20T06:40:09.721Z --- # Administration > Answers to common questions about running and securing TAS. ## I lost the administrator password. What can I do? Stop TAS, delete `databases/memorize_account.json` and start TAS again. The sign-in page shows a new default account. See [First sign-in](../../guides/first-sign-in/). ## What do I need to back up? The PostgreSQL database and the `databases` folder. See [Data locations](../../reference/data-locations/). ## The designers stay empty. Why? The flow designer and the page designer are loaded from the addresses in the `cl_config` table. Your browser must be able to reach them, and they must be able to reach your TAS server. See [Stored settings](../../reference/stored-settings/). ## How do I keep TAS safe? - Change the default credentials right after the first sign-in. - Use HTTPS. - Restrict who can reach the server, for example with a firewall or a VPN.