Wuku is a word-game designed to be built on top of the Ethereum blockchain. The concept is simple:
- Start a haiku with the first 2 phrases of five and seven syllables respectively.
- Set a starting pot of $ for your story.
- Let others contribute a third phrase!
- At the end of 3 days, contributions close and contributors have 1 day to vote for their favorite third phrase
- The winner of the most popular phrase gets 70% of the prize pot at that moment, with the remaining 30% going to the story creator.
- Node
- Yarn
- Metamask Installed on Metamask-supported Browser
- Run
yarn
to install dependencies - Run
yarn compile
to compile Solidity contracts. (You should seeStory.json
andStoryFactory.json
show up inethereum/build
) - Copy
.env.example
to.env
- To get
SEED_PHRASE
andPROVIDER_URL
for.env
, you need to either run your own Ethereum node or use a provider like Infura. The easiest solution is obviously the latter, so I recommend signing up, creating a new app, and copying the seed phrase and URL to the .env file instead. - Run
truffle migrate --reset --network rinkeby
to deploy an instance of theStoryFactory
contract on the copy of the Ethereum blockchain that your provider is connected to. The terminal should return an address the contract is deployed to. Copy that, and paste it into.env
- You will never have to do the steps in this section again, unless the source of the Solidity contract changes
- If you already know how to get Ether from a faucet, skip the next section.
- Click on MetaMask on your browser and unlock it
- Copy your wallet address to your clipboard
- Tweet it
- Copy the link to the tweet into https://faucet.rinkeby.io/
- Voila! Ether!
- Run
yarn start
- Navigate to
localhost:3000
- Done!