6dafc26deb6e5380022dba93d626c6b0dd8d8cda
This changes how we wait for web3 and accounts to be available and renames web3Provider to ethProvider as we could be able to swap the different providers (ethers.js vs. web3)
kredits-web
This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.
Prerequisites
You will need the following things properly installed on your computer.
Installation
git clone git@github.com:67P/kredits-web.gitthis repositorycd kredits-webnpm install
Running / Development
ember serve- Visit your app at http://localhost:4200.
Code Generators
Make use of the many generators for code, try ember help generate for more details
Running Tests
ember testember test --server
Building
ember build(development)ember build --environment production(production)
Deploying
Specify what it takes to deploy your app.
Working with locally deployed contracts
For development you should checkout truffle-kredits.
See the README how to setup truffle-kredits.
Run the following commands in truffle-kredits
ganache-cli -p 7545truffle migratenpm link
Run ipfs local
ipfs daemon --offlineSee IPFS for the setup
In kredits-web
npm link kredits-contractsember serve
IPFS
Install IPFS with your favorite package manager and run
ipfs init
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["localhost:4200"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'