Giter Site home page Giter Site logo

go-chat's Introduction

go-chat

How To use

git clone https://github.com/ClementBolin/go-chat.git
cd go-chat
Setup Environenment (Init go.mod)
make build

Open second Terminal.

Run Server
make run-server

Why this project

Project Subject

  • The server accepts several users.
  • The server has a log file with incoming and outgoing connections.
  • The user must define a nickname before being able to log in and the - nickname must not exceed 20 characters.
  • The user cannot take a nickname that has already been used.
  • The user must send the message to the server and the message will be - broadcast to all other users.
  • Use the notion of class with structures (one structure for the server - and another one for the client).
  • Notify other users that a user has logged in/disconnected.
  • The client and the server communicate via the TCP protocol.

Golang Competances

I want to dicover Golang programing language, and for that, what could be better than a discovery project? You can see below the list of points I have addressed in the project so far.

  • Structure
  • Methods
  • Write in file
  • Read file
  • Use net lib
  • loop
  • condition
  • Input user
  • Function
  • Goroutines
  • Interface

go-chat's People

Contributors

clementbolin avatar

Stargazers

 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.