GithubHelp home page GithubHelp logo

lmortezal / chater Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 25 KB

Chater is a Golang-based chat application with server and client modes, enabling real-time messaging via TCP4 connections for seamless online communication.

Go 100.00%
chat golang self-learning self-project client-server student-project

chater's Introduction

Chater

1. Introduction

This is a simple chat application that allows users to send and receive messages in real time using tcp sockets. The application is written in Go and uses the net package to create a tcp server and client. The server listens for incoming connections and broadcasts messages to all connected clients. The client connects to the server and sends messages to the server. The application uses ssl to encrypt the communication between the server and the client. The application also use BubbleTea to create a simple terminal UI.

Run the client

$ ./chater client -d <server-ip> -p <port>

Run the server

$ ./chater server -d <server-ip> -p <port>

Create ssl certificate

$ mkdir server && cd server

$ openssl ecparam -genkey -name secp384r1 -out server.key

$ openssl req -new -x509 -sha256 -key server.key -out server.crt -days 365

TODO

  • Create a simple chat server/client with ssl
  • build a simple terminal UI using BubbleTea
  • Add more features to the chat application
  • Add tests
  • Add simple database to store chat messages
  • Add authentication
  • Add more security features
  • Server just handle clients to connect to each other and send messages with encryption and data storage

chater's People

Contributors

lmortezal avatar

Stargazers

EryX avatar Ali Moallemi avatar  avatar Ali avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.