---
title: Install Tables
project: Tables
version: 7.0
section: guides
language: sk
translation: missing
license: Total.js Enterprise
url: https://totaljs.es/docs/sk/tables/7-0/guides/install/
updated: 2026-11-20T06:39:57.622Z
---

# Install Tables

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

> **Note:** Total.js Tables is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [Tables page](https://www.totaljs.com/tables/) 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](https://www.totaljs.com/enterprise/) subscription. See the [Tables page](https://www.totaljs.com/tables/) 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`:

```sql
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:

```bash
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:

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

All the keys of this file are in [Configuration](../../reference/configuration/).

## Start Tables

Start the app:

```bash
npm start
```

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

```bash
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](../first-sign-in/).

To run Tables on a public server, read [Run Tables in production](../production/).
