This box is a sample that use Web3 1.0.0-beta and TypeScript 2.8, percel, metacoin box. I'm happy if this sample is useful for learning etheruem.
Install Truffle globally.
npm install -g truffle
Download the box. This also takes care of installing the necessary dependencies.
truffle unbox YuichiNukiyama/truffle-ts-percel-box
NOTE: This box depend on Web3.js 1.0.0-beta. And this package can't install on
Windows without build-tools. If you want to use this sample on Windows, execute following script before
// You shoud execute with administrator authority.
npm install --global --production windows-build-tools
Run the development console.
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
perceldevelopment server (outside the development console) for front-end hot reloading. Smart contract changes must be manually recompiled and migrated.
// Serves the front-end on http://localhost:1234 npm run dev
Cleanup extra data after stop truffle and percel.
I referred to the following box. Thank you for authors :smile: