-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdoc.go
64 lines (42 loc) · 1.66 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package goChat
/*
Go-Chat is a straight forward client-server chat app implemented using gRPC with protocol buffers. The code is well documented to help individuals learn as well as contribute.package go-chat
To begin, start the server:
cd [PATH_TO_SRC]/Server
go run server.go
// Alternatively:
go build
Now, you can start spinning up as many clients as you wish:
cd [PATH_TO_SRC]/client
go run client.go menu.go
// Alternatively:
go build
At this point, you will be greated with a prompt asking for the server. Below is a sample run:
Welcome to Go-Chat!
------------------------------------------
In order to begin chatting, you must first chose a server and username. It cannot be one
that is already in user on the server. Remember, your username only lasts for as long as
you are logged into the server!
Please specify the server IP: localhost:12021
You have successfully connected to localhost:12021! To disconnect, hit ctrl+c or type !exit.
Enter your username: user1
Welcome user1! There are currently 1 member(s) logged in and 0 group(s).
------------------------------------------
Main Menu
1) Create a Group
2) View Group Options
3) Exit Chat
3) Exit Chat
Main> 1
Enter the name of the group or type !back to go back to the main menu.
Join> group1
Created and joined group named group1
You are now chatting in group1.
------------------------------------------
Current Members: user1
Hello! Anyone here?
!exit
exit status 1
PS C:\Users\Taylor\Work\src\github.com\taylorflatt\go-chat\Client>
I set my username to user1, created a group called group1, and sent a message "Hello! Anyone here?". I then typed !exit to quit the program.
*/