A basic hybrid DApp that use the Vote API contract and the Signer on AWS Lambda
See the Concept repository.
- Webpack to bundle the JS files
- http-server to create a local http server
- Testrpc for local development blockchain
npm install
The config is done in app.js
file.
You may need to change those variables to match your environment:
let contractAddress = "0xd89208fd82e9ae16789891654fa092cbf55eba2d"
let backupNodeURL = "https://128.199.140.92"
let signerURL = 'https://p07ckk3cb7.execute-api.us-east-1.amazonaws.com/dev/sign'
let wallet = {
"public": "0xBA26Dcdfd63447baA042e3968a376cE70D530F83"
}
npm run build
This will create the bundle.js
file.
Same as build but will rebuild when modification occure to the JS files.
npm run build-and-watch
To serve the website over a local server, you can use http-server
npm install -g http-server
Then navigate the root folder of the repo and execute:
http-server
This will create a local http server on http://127.0.0.1:8080