35 lines
852 B
Markdown
Raw Normal View History

2018-10-03 08:45:56 -04:00
# hackathon-registration-dapp
TODO - Add docs
2018-10-03 14:28:33 -04:00
### Installation:
2018-10-03 08:45:56 -04:00
```
git clone https://github.com/status-im/hackathon-registration-dapp.git
cd hackathon-registration-dapp
npm install
```
2018-10-04 22:05:09 -04:00
### Contracts
TODO
2018-10-03 14:28:33 -04:00
2018-10-04 22:05:09 -04:00
Send enough SNT/ETH to the contract address. These funds are going to be distributed.
2018-10-03 14:28:33 -04:00
### Generating codes
2018-10-04 22:05:09 -04:00
To generate the codes, execute `node server/codegen.js`. This comand will output a `codes.txt` file, and the proof and merkle root used for the contract
### Background service
A nodejs service was created to receive funding requests. It requires a geth light node to run
0. `chmod 600 server/config.js`
1. Edit `server/config.js` and set the contract address and the private key of the controller address.
2018-10-04 22:31:39 -04:00
2. `node server/main.js`
2018-10-03 08:45:56 -04:00
2018-10-03 14:28:33 -04:00
### Running the dapp.
2018-10-04 22:05:09 -04:00
0. `embark run`
1. Browse http://localhost:8000/index.htm?CODE_TO_REDEEM
2018-10-03 08:45:56 -04:00