Crowdfunding DApp - Bend Make Change Hackathon 2019
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Please make sure you've already installed ganache-cli, Truffle and enabled MetaMask extension in your browser.
* Truffle v4.1.16 (core: 4)
* Solidity - ^0.4.25 (solc-js)
* Node v10.16.3
A step by step series of examples that tell you have to get a development env running
- Clone this repository:
git clone https://github.com/olisystems/bendmakechange-hackathon
- Install all the requisite npm packages (as listed in
package.json
) in the project directory.
$ npm install
- Change directory to
app
folder and install all requisite npm packages (as listed inpackage.json
):
$ cd app
$ npm install
- Launch Ganache:
$ ganache-cli
- In a separate terminal window, Compile smart contracts:
truffle compile
This will create the smart contract artifacts in folder src\assetes\jscontracts
.
- Migrate smart contracts to the locally running blockchain, ganache-cli:
truffle migrate
- In a separate terminal window, launch the DApp:
npm run dev
NOTE: In order to send the transaction, you need to import one of the account provided by ganache
to Metamask.