Ganache is a ‘personal’ Ethereum blockchain.
You can use your personal blockchain to deploy contracts, develop your applications, run tests, execute commands and inspect states.
Download the appropriate version of Ganache for your OS.
On Mac, move downloaded file to Application folder.
On Windows, double-click on the downloaded file, follow the prompts, and you’re up and running.
Open Ganache, then click on
QUICKSTART (or NEW
WORKSPACE) for advanced options.
You will get 10 external accounts with addresses on your local blockchain.
Each account will have 100 test ethers.
NEW WORKSPACE to create new workspace. (OR click
QUICKSTART to start one-click blockchain with default options).
Provide workspace name.
Change other configurations (Server, Accounts & Keys, Chain etc) as needed.
You will get 10 accounts with 100 Ethers each.
Accounts — shows accounts generated and their balances.
Blocks — shows each block as mined on the blockchain, along with gas used and transactions.
Transactions — lists all transactions run against the blockchain.
Contracts — lists the contracts contained in your workspace’s Truffle projects.
Events — lists all events that have been triggered since this workspace’s creation. Ganache will attempt to decode events triggered by contracts in your Truffle project. For more information on events.
Logs — shows the logs for the server.
SWITCH button near the upper right of the screen.
Select from the list or create new one.
Click setting gear icon in the upper right.
TRUFFLE PROJECTS, click on
Navigate to the folder of your Truffle project, and select the
truffle.js configuration file.
SAVE AND RESTART.