npm install -g @angular/cli@latest
(linux users might have to do: sudo npm install -g @angular/cli@latest)
Part 2
Open a new terminal and start IPFS daemon with ipfs daemon
Start testrpc in new terminal with testrpc -l 47000000000000.
From inside the project directory run truffle compile to compile your contracts
And truffle migrate to deploy those contracts to the network
Now finally, start the project with npm start. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Make sure there are no errors in browser console
Login
This project uses your keystore file to login to the application.
For now, the accounts that can login are hardcoded in auth.service.ts with there role. Future builds will feature a screen for proper role and account management.
You can find the keystore for default accounts and there password in 'keys' folder.
URLs
/login
/retailer
/distributor
/manufacturer
/supplier
Todo:
Access IPFS from browser (Remove separate script for IPFS upload).
请发表评论