GithubHelp home page GithubHelp logo

chat-client's Introduction

chat-client

To run this project you need to run services from this repos:

Then for build use this command: go build -o main cmd/main.go

After build, we use this commands:

  • To login, you should be registered user in the auth service, then
  • login: ./main --username login --password password
  • Create chat: ./main create chat --refresh-token your.token.here --usernames user1,user2,user3
  • after that you will get chat uuid, and you can connect to this chat
  • Connect to chat: ./main connect --refresh-token your.token.here --chat-id chatUUID

For example:

./main login -u amet2 -p pariaturA1

2023/06/19 20:48:35  |  INFO  | log-in successfully

./main create chat -u amet2 --usernames odon39

2023/06/19 21:50:29  |  INFO  | chat created with id: 2f3f959f-c6ed-4e5a-aacc-1b2324b9a912

./main connect -u amet2 --chat-id  2f3f959f-c6ed-4e5a-aacc-1b2324b9a912

## now you can send messages in da chat
2023/06/19 23:45:56  |  INFO  | [2023-06-19 20:41:30] amet2: das
das
2023/06/19 23:45:58  |  INFO  | [2023-06-19 20:45:58] odon39: das

chat-client's People

Contributors

arkosh744 avatar

Watchers

Олег Козырев avatar  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.