Blockchain project
- Make sure you have geth or ganache running, with the same url and port set up in src/LetterContract/truffle.js
- run
./src/start.shto start the service
This project was generated with the Angular Full-Stack Generator version 4.2.3.
- Git
- Node.js and npm Node >= 4.x.x, npm >= 2.x.x
- Gulp (
npm install --global gulp) - MongoDB - Keep a running daemon with
mongod - Ethereum - Keep a runnning geth process open
- [Truffle] (https://github.com/trufflesuite/truffle) - Use truffle as the Ethererum development framework
####Alternatively, step by Step
-
Run
npm installto install server dependencies. -
Run
npm install -g truffleto install truffle globally -
Enter
\Lettercontractremove the files in\buildfolder, runtruffle compile,truffle migrate -
Run
mongodin a separate shell to keep an instance of the MongoDB Daemon running -
Run
ipfs daemonto have ipfs node running -
Run
gulp serveto start the development server. It should automatically open the client in your browser when ready.
Run gulp build for building and gulp serve for preview.
Running npm test will run the unit tests with karma.
-
Port in use error
lsof -n -i:3000 | grep LISTEN | awk '{ print $2 }' | uniq | xargs kill -9 -
solidity compilation error, update solidity version in truffle
cd /usr/local/lib/node_modules/trufflerun npm install [email protected]