Use Truffle with Loom

TRUFFLE is used for Contrat Creation / Local Testing / Deployment

Truffle is the most popular blockchain development framework for good reason - it's packed with lots of useful features:

DEPLOYING DAPPS WITH TRUFFLE

Provided that npm and node have been installed on your computer, we'll want you to install Truffle and make it available globally.

npm install truffle -g

Now that we've installed Truffle, it's time to initialize our new project by running truffle init. All it is doing is to create a set of folders and config files with the following structure:

├── contracts
    ├── Migrations.sol
├── migrations
    ├── 1_initial_migration.js
└── test
truffle-config.js
truffle.js

Contracts, migrations, tests... this is pretty complicated😟

Don't worry, learning to use Truffle won't eat your brains. This chapter will walk you through Truffle's default project structure, and once you know how to use Truffle, deploying smart contracts will be a breeze.

Truffle's Default Directory Structure

So, running the truffle init command inside of the CryptoZombies directory, should create several directories and some JavaScript and Solidity files. Let's have a closer look: