-
Install Truffle globally.
npm install -g truffle
-
Clone repository
git clone https://github.com/async-la/ttn-eth cd ttn-eth
-
Set Data directory
DATADIR=/path/to/mydataDir
-
Create an account
geth --datadir $DATADIR account new
NOTE: Replace <ACCOUNT_ADDRESS> in genesis.json with the address of your newly created account.
-
Create Genesis Block
geth --datadir $DATADIR init ./genesis.json
-
Start Geth in console mode with RPC - NOTE: --rpccorsdomain is a wildcard for DEMO purposes only
geth --datadir $DATADIR --rpc --rpccorsdomain '*' console
In the development console, unlock your wallet and start mining
> personal.unlockAccount(eth.coinbase) > miner.start()
-
Start Swarm
swarm --bzzaccount <WALLET_ADDRESS> --datadir $DATADIR --ens-api '' -corsdomain '*'
In the development console, unlock your wallet and start mining
> personal.unlockAccount(eth.coinbase) > miner.start()
-
In a new terminal window, compile and migrate the smart contracts.
truffle compile truffle migrate
-
Start backend service
node server.js
NOTE: Updated app-id and key in server.js to match your TTN application
-
Start front end app
npm start
-
Notifications
You must be signed in to change notification settings - Fork 3
async-la/ttn-eth
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Demo app for running TTN application on a private ethereum blockchain
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published