Skip to Main Content
Truffle Quick Start Guide
book

Truffle Quick Start Guide

by Nikhil Bhaskar
June 2018
Beginner to intermediate content levelBeginner to intermediate
170 pages
3h 46m
English
Packt Publishing
Content preview from Truffle Quick Start Guide

Ganache-CLI

Ganache-CLI is an Ethereum client that enables you to connect to a local blockchain for testing your decentralized application. You'll see more of Ethereum clients in Chapter 3, Choosing an Ethereum Client, but for now, just know that it allows us to connect to a local Ethereum blockchain (localhost:8545). Here, we are just using Ganache-CLI to create a local blockchain on localhost:8545.

Let's install ganache-cli with the following command:

npm install ganache-cli -g

Then, run it. In a separate terminal window/tab, run ganache-cli.

That's it. In the terminal that you ran ganache-cli, you should see a very familiar screen:

As you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cryptosocial

Cryptosocial

Allen Taylor
Step into the Metaverse

Step into the Metaverse

Mark van Rijmenam

Publisher Resources

ISBN: 9781789132540Supplemental Content