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.
- Host: GitHub
- URL: https://github.com/s4kibs4mi/newschain
- Owner: s4kibs4mi
- License: other
- Created: 2021-01-11T18:40:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T12:58:47.000Z (over 4 years ago)
- Last Synced: 2023-08-04T16:38:45.174Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 881 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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