Install Todomator
Install Todomator on your server with Node.js and PostgreSQL.
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 todomator2. Install the dependencies:
npm installCreate 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/todomatorRead about the other keys in The config file.
Start Todomator
Start the application:
node index.jsOn 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.