6a31b0d57931e2629f0e92ec19ff5004a1a3078e
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"]'