Skip to content

Browser Terminal is a real-time, read-only terminal in the browser to monitor execution of a shell command

License

Notifications You must be signed in to change notification settings

markri/organist-term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Organist Terminal

Organist Terminal (organist-term) is written in node.js and can be used in any web application where you need a real-time terminal in the browser to monitor execution of some shell command. Typical workflow would be to ask the user for some parameters, which will result in a command that is stored in MySQL after which the user will be redirected to the exection page which will show the realtime exection.

Its use case is very specific for the Organist deployment tool, but should be usable on its own.

Key Features

  • Read only terminal, except for the Ctrl-C signal which will abort execution
  • Command provisioned from MySQL
  • Output log is stored in MySQL
  • Multiple monitoring instances supported (multiple users can view same execution)

Installation

npm install organist-term

Configuration

Default configuration is stored in package.json. And can be overwritten by using the default configuration override method which is described at https://docs.npmjs.com/misc/scripts#special-packagejson-config-object.

Default values:

{
  "port" : 8080,
  "dbhost" : "localhost",
  "dbname" : "organist",
  "dbuser" : "root",
  "dbpassword" : "vagrant",
  "table" : "CommandLog",
  "idField": "id",
  "commandField" : "command",
  "dateField": "datetimeend",
  "logField": "log"
}

Description:

  • port: on which port the node application is running
  • dbhost: MySQL host
  • dbname: MySQL database
  • dbuser: MySQL user
  • dbpassword: MySQL password
  • table: MySQL table which provides commands to be executed and where output is stored
  • idField: primary key column name for command table (int)
  • commandField: column name for the command (varchar(255) / text)
  • dateField: column name for the timestamp when command is finished
  • logField: column name where output is stored (text)

Screenshot

alt tag

About

Browser Terminal is a real-time, read-only terminal in the browser to monitor execution of a shell command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published