Spanish Total.js
English
Documentation For AI agents
Contents

Install Tables

Install Total.js Tables from its source code on a server with Node.js and PostgreSQL.

.md Website
On this page
Note: Total.js Tables is available only with a Total.js Enterprise subscription. See the Tables page on totaljs.com.

Tables is a Node.js application that keeps all its data in PostgreSQL. You install it from its source code.

Get the code

You get the source code of Total.js Tables from Total.js with a Total.js Enterprise subscription. See the Tables page on totaljs.com. Copy the folder of the app to your server, for example to /www/tables/.

Prepare PostgreSQL

Create an empty database and a user for Tables. For example, in psql:

CREATE USER tables WITH PASSWORD 'choose-a-strong-password';
CREATE DATABASE tables OWNER tables;

You do not need to create any table. Tables creates its own tables the first time it starts.

Install and configure

1. Open a terminal in the folder of the app.

2. Install the dependencies:

npm install

3. Open the file config in the folder of the app and set the connection to your database and the address of the app:

database              : postgresql://tables:choose-a-strong-password@localhost:5432/tables
url                   : https://tables.yourdomain.com

All the keys of this file are in Configuration.

Start Tables

Start the app:

npm start

This runs node index.js 8000, so Tables listens on port 8000. To use another port, give the number to index.js:

node index.js 8080

Open http://127.0.0.1:8000 in your browser. The first start creates the system tables in the database. Then continue with the first sign-in.

To run Tables on a public server, read Run Tables in production.

Made in Europe