An open API service indexing awesome lists of open source software.

https://github.com/s4kibs4mi/newschain

Newschain is an ethereum blockchain-based news portal on top of Vue.
https://github.com/s4kibs4mi/newschain

Last synced: 6 months ago
JSON representation

Newschain is an ethereum blockchain-based news portal on top of Vue.

Awesome Lists containing this project

README

          

# NewsChain

Smart contract to publish news on ethereum blockchain.

### Install solc

```
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
```

### Install go-ethereum & abigen

```
go get -u github.com/ethereum/go-ethereum
cd $GOPATH/src/github.com/ethereum/go-ethereum/
make
make devtools
```

### Generate smart contract abi

```
solc --abi contracts/NewsChain.sol -o bindings/
```

### Generate go code

```
$HOME/go/bin/abigen --abi ./bindings/NewsChain.abi --pkg contracts --out bindings/newschain.go
```

### Truffle Install

```
npm install -g truffle
```

### Compile solidity code

```
truffle compile
```

### Deploy smart contract

```
truffle migrate --reset
```

Tutorial: https://medium.com/liveklass/building-dapps-on-ethereum-from-scratch-b428799725a