Install blockchain simulator client Ganache-CLI like localhost running on default port 8545
npm install -g ganache-cli
Once it's installed, you can check if it works by simply running the global ganache-cli command in a new terminal window:
ganache-cli
You are now running a local Ethereum node with some (fake) wallets that you can send money from.
mkdir Tweether
cd Tweether
npm init
- Node-based Solidity compiler called solc.
npm install solc --save
- Web3.js is a JavaScript API that sends requests to the Ethereum blockchain (either the real one or your local one). It acts as the middleman between your frontend and your smart contracts
npm install web3 --save
- run
node index.js
to deploy your smart contract.
npm install -g truffle