Lokinet Chat CLI is a secure, multi-chatroom messaging application built with Go. It allows users to create profiles, join or create chatrooms, and exchange messages in real-time, with chat histories saved on the server.
-
Multi-Chatroom Support
- Users can create or join multiple chatrooms hosted on a server.
-
Real-Time Messaging
- Messages are broadcast to all participants in the chatroom.
-
User Profiles
- Users can create and manage profiles with public/private keys.
-
Chat History
- All chat messages are saved in history files on the server.
- Go installed on your system (version 1.20 or higher).
- Access to the Lokinet Chat project files.
-
Clone the Repository
git clone <repository_url> cd lokinet-chat
-
Install Dependencies Ensure you have Go modules initialized:
go mod tidy
-
Build the Application Compile the application:
go build -o lokinet-chat .
-
Start the Chatroom Server
- Run the application and choose
Option 1
to start the server:./lokinet-chat
- The server will listen on
localhost:8080
by default.
- Run the application and choose
-
Create or Join a Chatroom
- Run the application on another terminal or machine and choose
Option 2
. - Enter the server address and the chatroom name to join or create a chatroom.
- Run the application on another terminal or machine and choose
-
Exchange Messages
- Messages sent by one user in a chatroom will be broadcast to all other users.
-
Manage Profiles
- Use
Option 3
to view your profile. - Use
Option 4
to create a new profile.
- Use
- Chat histories are saved in files named
<chatroom_name>_history.txt
on the server. - Each chatroom maintains its own separate history.
- To leave a chatroom, type
/quit
. - To exit the application, select
Option 5
from the main menu.
- Private messaging between users.
- Chatroom access permissions.
- Persistent user data storage.
This project is licensed under the MIT License.
Created by Lokinet Chat CLI Team.