To install dependencies run in terminal: $ truffle install zeppelin
To run tests run in terminal: $ truffle test
- Quick summary
- Version
- Learn Markdown
- Summary of set up
- Configuration
- Dependencies
- Database configuration
- How to run tests
- Deployment instructions
- Writing tests
- Code review
- Other guidelines
- Repo owner or admin
- Other community or team contact
You need gas for running contracts operations. Gas is not free, you should have Ethereum in the wallet to use gas.
In order to get ethereum you should enable mining. At first you need to connect to Ethereum console:
docker exec -it bootstrap geth attach ipc://root/.ethereum/devchain/geth.ipc
Inside console you should run miner.start(1)
to start mining using a single thread of your CPU.
You could check current mining status on http://localhost:3000
Mining takes lot of CPU resources, so once you have enough ethereum/gas you can turn it off by typing miner.stop()
in Ethereum console.
- Get authentication token by POSTing into http://localhost:8000/auth a JSON with 'email' and 'password' fields.
- You should get a JSON with access_token variable.
- For each protected resource you shuld provide "Authorization" header of 'Bearer <access_token>' format.
- open truffle console: $ truffle console --network development
- run in console: web3.eth.getBlock("pending").gasLimit
- copy received gas value into truffle.js file in /contracts