A practice implementation of a blockchain-based ticket sales platform created with Solidity, JavaScript and React.
- Install Node.js with your system package manager, or by visiting the website.
- Run
npm install
to install any required node modules. - Open your web browser and go to the page where you can register a development browser extension.
- Add
extensions/wallet/manifest.json
as a browser extension and enable it.
- Run the front-end application:
npm run start:app
- Run the blockchain:
npm run start:chain
- Deploy Solidity contracts to the chain:
npm run deploy
- Copy the addresses and private keys of any desired accounts from the output of step 2 and add them to the Wallet browser extension you registered in setup. Then connect one of the accounts.
- Tests can be run with:
npm run test
, ornpm run test:gas
to report the Ethereum gas usage.