- Clone the repository:
git clone https://github.com/snurfer0/fundraiser-dapp.git
- Navigate to the project folder:
cd fundraiser-dapp
- Install dependencies:
npm install
- Compile solidity smart contracts:
npm run truffle:compile
- Generate typescript types:
npm run smart-contracts:typechain:generate
- Generate typescript types:
npm run app:typechain:generate
- Run tests:
npm run truffle:test
- Set up the environment variables (next section)
- Start Next.js App:
npm run next:dev
# App environment
APP_ENV="local | development | production"
# Ethereum provider token
ETH_PROVIDER_TOKEN="your-provider-token"
# Ethereum provider endpoints
ETH_HTTP_PROVIDER="your-http-provider"
ETH_WS_PROVIDER="your-ws-provider"