Go to file
Richard Ramos 9317bb3e00 Installed embark, ipfs and DApp in docker 2018-12-05 18:21:43 -04:00
app Updating styles 2018-10-20 07:37:20 -04:00
config changing logic to not deal with nonces 2018-10-10 19:48:50 -04:00
contracts Missing function 2018-11-26 09:12:49 -04:00
server Fixed deprecated buffer creation 2018-11-26 08:56:14 -04:00
test Initial import 2018-10-03 08:45:56 -04:00
.dockerignore Installed embark, ipfs and DApp in docker 2018-12-05 18:21:43 -04:00
.gitignore Removing merkle proofs from frontend 2018-10-07 11:51:27 -04:00
Dockerfile Installed embark, ipfs and DApp in docker 2018-12-05 18:21:43 -04:00
README.md Update README.md 2018-11-26 08:51:22 -04:00
build.sh Dockerfile for nvm, nodejs and embark installation 2018-12-05 16:28:04 -04:00
embark.json Updating styles 2018-10-20 07:37:20 -04:00
package-lock.json Installed embark, ipfs and DApp in docker 2018-12-05 18:21:43 -04:00
package.json Adding extra conditions for retrying trx 2018-10-19 13:17:45 -04:00

README.md

hackathon-registration-dapp

Prerequisites:

  • Geth, IPFS and Embark installed

Installation:

git clone https://github.com/status-im/hackathon-registration-dapp.git
cd hackathon-registration-dapp
npm install

Configuring dapp

Edit ./app/js/config.js. Edit the ens-usernames dApp URL, and the API endpoint NOTE: The server caches the .js/.css files, so in order to see the new changes, edit ./app/index.html to point to a new version of the files, and edit ./embark.json so the files are generated with a new name. Then, embark build testnet/livenet after changes.

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.
  2. node server/main.js

Running the dapp in a development environment

  1. embark run
  2. Browse http://localhost:8000/index.htm?CODE_TO_REDEEM

Generating codes (IN DEV)

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 in server/merkle.js