Spanish Total.js
English
Documentation For AI agents
Contents

Install Todomator

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

.md GitHub
On this page

Follow these steps to install Todomator with Node.js and PostgreSQL. Check the requirements first.

Get the application

1. Download the source code:

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

2. Install the dependencies:

npm install

Create the database

Create an empty database for Todomator:

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:

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

Read about the other keys in The config file.

Start Todomator

Start the application:

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:

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.

To choose another port or run in release mode, see Command line.

Made in Europe