- Signup to IBM Cloud
- Install Cloud Foundry CLI
- Install Bluemix CLI
- Install Kubernetes CLI
- Install Minikube Minikube
- Install Docker Docker
- Creating user service
- Creating location service
- Creating Blockchain services
- Connecting to real database
- Creating cron jobs for matching
- Creating frontend app
- Deploying to ICP (IBM Cloud Private)
$ eval $(minikube docker-env)
- Creating user-service
$ cd user-service
$ docker build -t user-service .
$ docker run -i -t -p 30094:30094 user-service:latest
- Creating location-service
$ cd location-service
$ docker build -t location-service .
$ docker run -i -t -p 30095:30095 location-service:latest
> Add google map api key in main.go
- Creating blockchain-node1
$ cd blockchain-validator1
$ docker build -t blockchain-validator1 .
$ docker run -i -t -p 30090:30090 -p 30091:30091 blockchain-validator1:latest
- Creating blockchain-node2
$ cd blockchain-validator2
$ docker build -t blockchain-validator2 .
$ docker run -i -t -p 30092:30092 -p 30093:30093 blockchain-validator2:latest
- Start Minikube
$ minikube start
- Get cluster info
$ kubectl cluster-info
- minikube dashboard
$ minikube dahsboard
- running service-deployment.yml file
$ kubectl create -f service-deployment.yml
- get minikube ip
$ minikube ip
- Blockchain node1
- Tendermint RPC port 30090
- Tendermint p2p port 30091
- Blockchain node2
- Tendermint RPC port 30092
- Tendermint p2p port 30093
- User Service
- port 30094
- Location Service
- port 30095
- (GET) :30094/all
- (GET) :30094/user/{id}
- (POST) :30094/create
{ "id": "1",
"name": "Matt",
"gender": "Male",
"age": 23,
"userlocation": {
"Lat": 54.234,
"Long": 55.234
}
}
- (DELETE) :30094/delete/{id}
- (GET) :30095/location
- (GET) :30090/ # Tendermint RPC Port
- (GET) :30092/ # Tendermint RPC Port