Terminal User Interface for Rocket.Chat made using Bubbletea
Prerequisites:
http://localhost:3000
and login/signup into a new account save your credentials for signing in TUI.go get
in terminal to get all golang packages we are usingMake a .env
file in the project root directory and add below code in it.
PROD_SERVER_URL=https://community.liaison.rocketchat.digital
DEV_SERVER_URL=http://localhost:3000
go run main.go -debug
to run the TUI.-debug
flag so that it logs log statements in debug.log
file.-prod
flag too while running main.go
. It will use the production server.-url
flag too while running main.go
i.e. go run main.go -url=https://open.rocket.chat
. It will use the given server.main.go
. It starts the bubbletea Program to run TUI.model.go
contain global state of TUI and methods required by bubbletea to initialise, Update and Render the TUI in terminal.view.go
contain UI code of the TUI which uses styles defined in styles
package. We are using lipgloss for styling the TUI.keyBindings
package to keep them seperate from TUI so that new key bindings can be easily added when needed.cache
package