Skip to content

bdeweygit/grpc-mailman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To deploy server on a Google Cloud Ubuntu 14 vm instance

> sudo apt-get update; sudo apt-get install python-dev python-virtualenv git
> git clone https://github.com/bdeweygit/grpc-mailman.git
> cd grpc-mailman
> ./setup.sh
> source ./env/bin/activate
> nohup python3 server.py &

To setup client

# you need python 3.6+ and virtualenv installed on your machine
> git clone https://github.com/bdeweygit/grpc-mailman.git
> cd grpc-mailman
# edit the MAILMAN_ADDRESS in client.py to connect to the IP address of your server
> ./setup.sh
> source ./env/bin/activate
> ./mailman.sh # will show usage

Usage

add         register a mailbox
rm          remove a mailbox
get         get mail
send        send mail
ls          list mailboxes

> add "mailbox_name"
> rm "mailbox_name" "password"
> get "mailbox_name" "password"
> send "source_mailbox_password" "source_mailbox_name" "destination_mailbox_name" "message"
> ls "query"

To test this project, simply make some mailboxes, send some mail, get some mail, try out the different commands, you get the idea. The mailman comes every two minutes; mail will not be delivered until then.

About

Toy mailboxes over grpc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published