tui-chat
v0.1.0
Published
A developer-focused terminal instant messaging client
Downloads
17
Maintainers
Readme
TUI-Chat
Pure terminal chat client with a Fastify + PostgreSQL backend.
CLI
Install from npm after publishing:
npm install -g tui-chatRun without global install:
npx tui-chatLocal Development
Start PostgreSQL:
docker compose up -d dbInstall dependencies and prepare the database:
pnpm install
pnpm db:migrate
pnpm db:seedRun the backend:
pnpm dev:serverRun the terminal client:
pnpm dev:clientTerminal Usage
↑/↓moves in menusEnterconfirms menu items and sends chat messagesCtrl+Bgoes backCtrl+Greturns to the main menuCtrl+Ploads or scrolls to older chat messagesCtrl+Nscrolls back toward newer chat messagesCtrl+Cexits the program
Environment
Example local configuration is in .env.example.
Key backend variables:
DATABASE_URLJWT_SECRETPORTHOST
Key client variables:
API_BASE_URLWS_URL
npm Release
Before publishing:
pnpm install
pnpm release:check
npm login
npm publishThe package is configured for public npm publish.
Backend Deployment
Build and run with Docker Compose:
docker compose -f docker-compose.deploy.yml up --build -dThis starts:
- PostgreSQL on port
5432 - the API / WebSocket server on port
3000
Initialize the database once after the first deploy:
docker compose -f docker-compose.deploy.yml exec server pnpm db:migrateRepository
- GitHub: GenSuiWo/tui-chat
