A simple chatroom application with SQLite backend and WebSocket support.
- Real-time messaging using WebSockets
- Persistent message history using SQLite
- Simple and clean UI
- Easy to install and run
npm install -g chatroom
Navigate to the directory where you want to store the chatroom database, then run:
npx chatroom
This will:
- Create a SQLite database in the current directory if it doesn't exist
- Start a web server on port 3000 (default)
- Open a WebSocket server for real-time communication
Then open your browser to http://localhost:3000 to use the chatroom.
You can specify a custom port using the PORT environment variable:
PORT=8080 npx chatroom
MIT