From 5922295d878d0422700b4c9dbaec8c7bf9594e46 Mon Sep 17 00:00:00 2001 From: gusaul Date: Fri, 13 Sep 2019 14:46:36 +0700 Subject: [PATCH] add running method alternatives --- Makefile | 13 +++++++++++++ README.md | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..69e7faf --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +usage: FORCE + exit 1 + +FORCE: + +include config.env +export $(shell sed 's/=.*//' config.env) + +start: FORCE + @echo " >> building..." + @mkdir -p log + @go build + @./grpcox \ No newline at end of file diff --git a/README.md b/README.md index d874a65..5669e38 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,14 @@ from terminal, move to grpcox directory, then run command ```shell docker-compose up ``` +if you're using docker and want to connect gRPC on your local machine, then use +
`host.docker.internal:` instead of `localhost` + +### Golang +if you have golang installed on your local machine, just run command +```shell +make start +``` configure app preferences by editing `config.env` file