Install Dashboard
Get the code, install the dependencies, connect PostgreSQL and start Dashboard.
Questa pagina non è ancora tradotta. Stai leggendo l’originale.
In questa pagina
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 install2. Open the file config in the folder and set database to the connection string of your PostgreSQL database:
database : postgres://user:password@localhost:5432/sales3. Start Dashboard:
npm start4. 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 8080Next steps
- Every key of the
configfile: Configuration. - Before other people use it: Run in production.