Skip to content

Decentralized hackathon that fosters your creativity and rewards you with tangible and transparent feedback.

Notifications You must be signed in to change notification settings

EthereumHN/HackathonMunon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Discord Travis

Hackathon Muñón: Dapp Edition

Hack, review and split the pot!

Hackathon Muñón: Dapp Edition is a decentralized event where creators gather to build, network and have a good time. Every participant is a judge and reviews their peers to split a pot. The pot is created and distributed in form of Ether with the help of this Ethereum smart contract and Angular frontend.

For more information, visit the wiki.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

  1. Install truffle, Angular CLI and an Ethereum client. If you don't have a test environment
npm install -g truffle
npm install -g @angular/cli
npm install -g ganache-cli
  1. Download the box. (if you want a boilerplate to make a proyect like this)
truffle unbox ng-es/angulartruffledapp
  1. Run your Ethereum client. For Ganache CLI:
ganache-cli

Note the mnemonic 12-word phrase printed on startup, you will need it later.

  1. Run the tests.
truffle test
  1. Compile and migrate your contracts.
truffle compile && truffle migrate
  1. Change the port in truffle-config.js
change the port in truffle-config.js 8545 in windows the port is 7545 but in linux the defaul port is  8545
  • Common errors and their solutions
Error Solution
Module not found: Error: Can't resolve '../../../../build/contracts/HackathonMunon.json' during ng serve Run truffle compile
Error: the tx doesn't have the correct nonce. in MetaMask Reset MetaMask: Settings -> Reset Account
Error getting balance; see log. in UI, with Error: MetaCoin has not been deployed to detected network (network/artifact mismatch) in browser console Ensure you have started ganache, run truffle migrate and configured MetaMask to point to ganache

Developped on top of Truffle Make Your Own Truffle Box and ng-es's Boilerplate.

Code contributions welcome!

  1. Fork it
  2. Add new features
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
  1. Create a pull request

Visit Landing Page

https://munonhack.com/