Authors: Harsh Apte (ha2179) Manan Chawda (mrc9419) Note: Open the src folder as the root of the project
A. Raft Setup on Local:
-
Clone CoreOS raft into local package cd src/github.com mkdir go.etcd.io cd go.etcd.io git clone https://github.com/etcd-io/etcd.git
-
Package Resolution from Module Graph of Go go mod tidy
-
Install goreman cd github.com/go.etcd.io/etcd/contrib/raftexample go get github.com/mattn/goreman
-
Build raft Example go build -o raftexample
-
Run goreman goreman start
B. Run Local Services
-
Run TokenActionService cd web/services/tokenActions/tokenActions_service go run tokenActionService.go
-
Run UserService cd web/services/user/user_service go run userService.go
-
Run Post Service cd web/services/post/post_service go run postService.go
-
Run UI(Web) Service cd cmd/web go run web.go
Verify the application is running on : http://localhost:8000/login/
C. Run the test cases by running the following (as one command): go run mainTest.go registerLoginTest.go followUnfollowTest.go postTest.go