---
title: Install Todomator
project: Todomator
version: 1.7
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/todomator/1-7/guides/install/
updated: 2026-11-19T04:33:04.388Z
---

# Install Todomator

> Install Todomator on your server with Node.js and PostgreSQL.

Follow these steps to install Todomator with Node.js and PostgreSQL. Check the [requirements](../requirements/) first.

## Get the application

**1.** Download the source code:

```bash
git clone https://github.com/totaljs/todomator.git
cd todomator
```

**2.** Install the dependencies:

```bash
npm install
```

## Create the database

Create an empty database for Todomator:

```bash
psql -U postgres -c "CREATE DATABASE todomator;"
```

Do not run the `database.sql` file yourself. Todomator uses this file on its first start to create the tables and the first account.

## Connect Todomator to the database

Open the `config` file in the application folder and change the `database` line to your own connection:

```text
database                    : postgresql://user:password@localhost:5432/todomator
```

Read about the other keys in [The config file](../../reference/config-file/).

## Start Todomator

Start the application:

```bash
node index.js
```

On the first start, Todomator creates its tables and the first account. It then listens on port 8000.

## Add the sign-in columns

Release 1.7 needs two more columns in the `tbl_user` table. Add them once, after the first start and before you sign in. Open a second terminal and run:

```bash
psql "postgresql://user:password@localhost:5432/todomator" -c "ALTER TABLE tbl_user ADD COLUMN IF NOT EXISTS code TEXT, ADD COLUMN IF NOT EXISTS dtcode TIMESTAMP;"
```

You do not need to restart Todomator.

## Open Todomator

Open `http://127.0.0.1:8000` in your browser. Then continue with [your first sign-in](../first-sign-in/).

To choose another port or run in release mode, see [Command line](../../reference/command-line/).
