https://github.com/iv4n-ga6l/Go-ChatApp
Chat application built in go
https://github.com/iv4n-ga6l/Go-ChatApp
chat chatapp cli client-server go golang
Last synced: 5 months ago
JSON representation
Chat application built in go
- Host: GitHub
- URL: https://github.com/iv4n-ga6l/Go-ChatApp
- Owner: iv4n-ga6l
- Created: 2024-05-06T03:35:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-06T03:36:22.000Z (over 1 year ago)
- Last Synced: 2025-03-26T11:47:45.838Z (7 months ago)
- Topics: chat, chatapp, cli, client-server, go, golang
- Language: Go
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat-application-in-go
## Description :
Instant messaging program that works in command prompt and writen with the go programming language.
## Prerequisites before running the script :
Install go compiler
## Screenshots

## How it run it :- Create a server
To create a discussion, you first must host a server :p. To do this, simply run the following command:```shell
go run client.go server.go main.go --mode server
```- Create a client
```shell
go run client.go server.go main.go --mode client
```- then choose an username for your client in the command prompt to start the discussion
## Logs
A log file named logs.txt will be created when you will start your server. It tells you the different clients status
```
[15/04/2019 17:58:25] alex connected from 192.168.1.35:56662
[15/04/2019 17:58:42] alex is disconnected [total client 1]
[15/04/2019 18:08:36] hatim connected from 192.168.1.35:56782
[15/04/2019 18:08:42] hatim is disconnected [total client 0]
[15/04/2019 19:35:40] Client from 127.0.0.1:39586 interrupt the username input
```