Drizzle DAPP with Meteor backend. More information here.
Trough command line enter dapp folder
cd dapp
- Install Truffle and Ganache CLI globally. If you prefer, the graphical version of Ganache works as well!
npm install -g truffle
npm install -g ganache-cli
- Run the development blockchain, we recommend passing in a blocktime. Otherwise, its difficult to track things like loading indicators because Ganache will mine instantly.
// 3 second blocktime.
ganache-cli -b 3
- Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle. To enter development console:
truffle console
then:
compile
migrate
Run the webpack server for front-end hot reloading (outside the development console). Smart contract changes must be manually recompiled and migrated.
// Serves the front-end on http://localhost:3000
npm run start
Trough command line enter meteor folder
cd ..
cd backend
npm install
// Serves the back-end on http://localhost:9000
npm start