GithubHelp home page GithubHelp logo

grpc-chatting-py's Introduction

Requirement

  1. install
$ pip install -r requirements.txt
  1. compile proto file
$ python -m grpc_tools.protoc -I./ --python_out=. --grpc_python_out=. chatting.proto

How to run

  1. open terminal and run this for server.
$ python server.py
  1. open another terminal and run this for user's CLI env
$ python chatting_cli.py

Guide for user

  1. first, you have to put user name.
Welcome to MyPrivateChatting!
Please Write your name.
Name : //put your name.
  1. If so, You could see main menu. You can choose from that what todo in here, like Entering or available to see channels that others made, making channel.

Also, regardless of channels, you can speak to users which joined to chatting service.

        Main Session
            # 1 : Enter channel
            # 2 : Show channel list
            # 3 : Make channel
            # Also you can speak to all of people by using !all     
            # example) !all hello
  1. If you enter the certain channel, you could see sub menu. You can choose from that what todo in here, too. If there is no one in channel, channel deleted. In here, you can interact with people who joined the same channel. also, in need you can speak to all of users by using !all.

If there is no one in channel, channel will be deleted.

        Sub Session
            # 1 : Exit Channel
            # 2 : Enter another channel
            # 3 : Show users in this channel
            # Also you can speak to all of people by using !all     
            # example) !all hello

grpc-chatting-py's People

Contributors

hoonseokkim 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.