This is Bookchain, it is a decentralized virtual library to keep track of your physical library. Library? Yes, we do mean books. This app consists of two components, this is the back-end portion. The front-end is written in React, and is located here Bookchain-Interface. This repository is written in Solidity and is built upon the block chain.
- This project is built in Solidity, want more info? See the resources section below.
- git clone or fork this repository
$ git clone https://github.com/bluesky-coder/bookchain-backend.git
- Install Solidity
$ npm install -g solc
- Install Truffle
$ npm install -g truffle
- Install Testrpc
$ npm install ethereumjs-testrpc
- In a separate terminal session run
$ testrpc
- Run
$ truffle migrate
this will migrate the contracts
- In a separate terminal session run
$ testrpc
Running the command testrpc
, runs the localhost blockchain on port 8545
- Run
$ truffle test
this command will run the test suite.
You can also run truffle test test/<filename>
to run a single test file
instead of the entire suite
- Fork the repository
- Find a problem
- Make a PR