Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A social media application (like twitter) with a backend microservice written in go (has a storage interface to a raft datastore) which communicates with a frontend (go templates) over gRPC.

Notifications You must be signed in to change notification settings

Reucherian/garuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garuda

Pre-requisites

To start this project you need to have go installed with all the modules mentioned in the project. You will also need to install etcd and goreman to utilize the raft storage option in the project.

Protobuf Generator

You will need to install the golang plugins for protobuf messages and grpc.

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Run the ./gen-model.sh shell script found in the root directory to generate the stub codes from the proto files.

Starting Application

execute the following commands to start the application

go run web/web.go

The above command will start the webserver which will render our html pages from the locally stored go template files (gtpl) using handler functions written in the same module.

cd cmd/web
go run web.go

The above command will start the backend server which will communicate to the webserver through grpc using protobuf files found in the model directory.

goreman -f Procfile start

The above command will start an etcd cluster of three nodes with endpoints mentioned in the Procfile.

Note - Make sure to edit the procfile to reflect the correct path to the etcd binary.

About

A social media application (like twitter) with a backend microservice written in go (has a storage interface to a raft datastore) which communicates with a frontend (go templates) over gRPC.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published