Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Truffle Quick Start Guide

You're reading from   Truffle Quick Start Guide Learn the fundamentals of Ethereum development

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789132540
Length 170 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Nikhil Bhaskar Nikhil Bhaskar
Author Profile Icon Nikhil Bhaskar
Nikhil Bhaskar
Arrow right icon
View More author details
Toc

Truffle and Node

If you skipped the Angular chapter, you need to do the following first:

  • Inside your truffle-practice folder, create a new folder called chapter5

Now, let's get started with Truffle and Node. First, create a new folder called truffle-node.

Inside the truffle-node folder, we need to initialize a Truffle project.

So, run the following command in your Terminal, while inside the truffle-node folder:

truffle init

Your truffle-node folder structure should now look like this:

.
├── contracts
├── migrations
├── test
├── truffle-config.js
└── truffle.js

To "run" this Truffle project, we need to have a JavaScript file to run as well as a package.json file that states our dependencies. To generate the package.json file, simply run npm init in your Terminal...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image