Skip to content

Graduation Project: Cloud Reliability implementation with Blockchain using Proof of Storage Algorithm

Notifications You must be signed in to change notification settings

IMpcuong/cloud-reliability

Repository files navigation

Graduation Project using Blockchain for Cloud Reliability

Resources: many thanks to all of these authors and contributors.

Requirements:

  1. Golang: version 1.18 or above.
  2. Makefile: install using Scoop of any package managements available in your local machine.

Usage:

  • Makefile commands: for more details please read the explanation in Makefile

Run:

make run

Build:

make build

Clean:

make clean

Format:

make fmt

Dependencies install:

make deps

Update dependencies:

make update
  • After run the make run command, run .\pdpapp.exe to see the details about this CLI application:
NAME:
   ImChain - Implementation Blockchain in GoLang

USAGE:
   pdpapp.exe [global options] command [command options] [arguments...]

COMMANDS:
   create-wallet, cw  create new storable wallet address
   start, ims         start blockchain server
   help, h            Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --wallet-addr FILE, --wa FILE  Export Wallet's configuration to specific FILE (default: "config/config.json")
   --config FILE, -c FILE         Load configuration from specific FILE (default: "config/config.json")
   --node NODE, -n NODE           Load database storage from specified NODE
   --help, -h                     show help
  • Some examples of the list of usable commands:

Start the network server:

.\pdpapp.exe start -c node1 -n node1

Create new wallet address:

.\pdpapp.exe --wallet-addr node1 create-wallet

Windows:

  • Must change binary file with .exe extension to be executable in Windows environment.

Test coverage:

  1. Go tests cover profile and export the results to html file:
go test -coverprofile cover.out
go tool cover -html=cover.out -o cover.html
  1. Run in default browser:
  • Powershell:
Start-Process cover.html
  • Bash shell:
open cover.html

About

Graduation Project: Cloud Reliability implementation with Blockchain using Proof of Storage Algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published