TODO
Get our latest code.
go install github.com/bartmika/growlog-server@latest
To start the server, run the following command in your terminal:
export GROWLOG_DATABASE_URL="postgres://golang:123passwordd@localhost:5432/growlog_db"
$GOBIN/growlog-server serve
That's it! If everything works, you should see a message saying gRPC server is running.
.
Details:
Run the gRPC server to allow other services to access the application
Usage:
growlog-server serve [flags]
Flags:
-h, --help help for serve
-p, --port int The port to run this server on (default 50051)
Example:
$GOBIN/tstorage-server serve -p=50051
If you'd like to setup the project for development. Here are the installation steps:
-
Go to your development folder.
cd ~/go/src/github.com/bartmika
-
Clone the repository.
git clone https://github.com/bartmika/growlog-server.git cd growlog-server
-
Install the package dependencies
go mod tidy
-
In your terminal, make sure we export our path (if you haven’t done this before) by writing the following:
export PATH="$PATH:$(go env GOPATH)/bin"
-
Run the following to generate our new gRPC interface. Please note in your development, if you make any changes to the gRPC service definition then you'll need to rerun the following:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative proto/growlog.proto
-
You are now ready to start the server and begin contributing!
go run main.go serve
Found a bug? Need Help? Please create an issue.
ISC License © Bartlomiej Mika