Spanish Total.js
English
Documentation For AI agents
Contents

Commands and configuration

The npm scripts of the app and the keys of its config file.

.md
On this page

Run the commands in the folder of the app.

API

command

npm start

Starts the app on port 8000 in debug mode: it restarts when a file changes.
command

npm run release

Starts the app on port 8000 in release mode, for production.
command

npm run backup

Writes a backup of the database and the uploaded images to backups/.
command

npm run restore -- <file.backup>

Restores a backup. Stop the app first; the current folder is kept aside.
command

npm run export-documents

For the developers of Documents: exports the example project to private/documents.json.
config

builtin : false

In the config file: false turns off the example project; edit (for the developers of Documents) unlocks it and stops updating it, so it can be edited and exported.
config

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

In the config file: the connection to the PostgreSQL database. It is required; on an empty database Documents creates its tables. The value can also be written as hex … or base64 ….
config

revisions : 50

In the config file, how many revisions of each document the history keeps (50 by default).
config

url : https://docs.example.com

In the config file: the public address of the site when it is not set in Settings. Empty: the address of the first request.
Made in Europe