A simple Kickstarter dapp copy based on Etherеum with ReactJS and NextJS as a front end
You can create Campaigns for funding your idea, receive funding from people who later become your approvers, and when you reach your goal you make spending Requests, which must be approved by at least half of your approvers.
Run npm install
in the main folder
Make sure you install Metamask in order to try out the app
- Run
npm run dev
and go tohttp://localhost:3000/
- Go to https://infura.io/signup and create an account
- Copy the URL next to
Rinkeby test network
- Open
<project_folder>/etherium/deploy.js
and replace my rinkeby URL with yours - Use your Metamask account for Rinkeby (or register a new account) by replacing my 12 word mnemonic with yours in
deploy.js
- Run
npm run dev
and go tohttp://localhost:3000/
(stop the server if it's already running)
- Open
<project_folder>/etherium/deploy.js
and replace
const provider = new HDWalletProvider(
'task axis silver cover high key know human conduct staff local struggle',
'https://rinkeby.infura.io/g6L3xFot6mHJr0ms2K1H'
)
const web3 = new Web3(provider)
with
const ganache = require('ganache-cli')
const provider = ganache.provider()
const web3 = new Web3(provider)
- In your terminal in the main project folder run
ganachle-cli
- Compile the solidity files by running
node etherium/compile.js
- Deploy the contracts by running
node etherium/deploy.js
- Run
npm run dev
and go tohttp://localhost:3000/
Run npm test