TooLoo can be started as a server, with two endpoints:
list-jsoncommand (see JSON Output).
show-jsoncommand (see JSON Output).
To start the server run the following:
tooloo serve <hostname> [port]
Hostname can be
0.0.0.0, or any other valid hostname in your system.
Port is optional and defaults to
Quit it by hitting
^c or closing the terminal window.
To run it in the background launch it as follows
tooloo serve <hostname> [port] &; disown
TooLoo uses SQLite under the covers, and as such only one process can access the database at a time. This means that there is technically a small possibility that if a request comes in from the command line AND from the web server at the same time, the 2nd process will get an error about the DB being locked.
However TooLoo is a single user tool, so YOU would have to use the web server AND the command line at exactly the same moment, which would be very impressive, and if you manage to do it we want video. ;)
Should you be concerned about this? No.