Spanish Total.js
English
Documentation For AI agents
Contents

Install Dashboard

Get the code, install the dependencies, connect PostgreSQL and start Dashboard.

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

Dashboard is a Node.js app. You run it on your own computer or server.

Requirements

  • Node.js 20 or newer.
  • PostgreSQL 15 or newer, with the data you want to show.
  • A browser with internet access. The screens and the chart libraries load from public CDNs.

Get the code

Total.js gives the source code of Dashboard to customers with a Total.js Enterprise license. See the Dashboard page on totaljs.com. Unpack it into a folder of its own, for example dashboard.

Install and start

1. Open the folder and install the dependencies:

cd dashboard
npm install

2. Open the file config in the folder and set database to the connection string of your PostgreSQL database:

database            : postgres://user:password@localhost:5432/sales

3. Start Dashboard:

npm start

4. Open http://localhost:8000/ in your browser. See Sign in for the first time.

Dashboard keeps running until you stop it with Ctrl+C in the terminal.

Use another port

npm start uses port 8000. To use another port, start Dashboard with Node.js and pass the port:

node index.js 8080

Next steps

Made in Europe