Skip to content

A basic frontend app that use the Vote API and the Signer on AWS Lambda

License

Notifications You must be signed in to change notification settings

Vote-On-Ethereum/Hybrid-DApp-Basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Hybrid DApp

A basic hybrid DApp that use the Vote API contract and the Signer on AWS Lambda

Concept

See the Concept repository.

Dependencies

Install

npm install

Config

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"
}

Build

npm run build

This will create the bundle.js file.

Watch and rebuild auto

Same as build but will rebuild when modification occure to the JS files.

npm run build-and-watch

Serve

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

About

A basic frontend app that use the Vote API and the Signer on AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published