Deploy an Ethereum Smart Contract in 6 Steps

Tutorial: How To Develop, Test & Deploy An Ethereum Smart Contract To Public Testnet

Alex Roan
The Startup

--

Truffle Logo by www.trufflesuite.com

The full working project code is available on Github.

Introduction

This article explains step-by-step instructions on using the Truffle Suite to develop and test a Smart Contract locally. Codebase checkpoints throughout this tutorial let you see what your code should look like at each stage. They look like this:

Codebase checkpoint: version x.x.x

Once we’ve tested our code locally, we will deploy it to a public Ethereum testnet and check it out on Etherscan!

We’ll do this in 6 steps:

  1. Setup
  2. Creating Our Project
  3. Writing The Smart Contract
  4. Compile and Migrate
  5. Testing
  6. Deploy To Testnet

1. Setting Up

Node & NPM

Follow instructions for installing NodeJS on your machine. NPM comes bundled with Node by default. For this walkthrough, I’m using Node version 9.10.0 and NPM version 5.10.0.

Text Editor

--

--

Alex Roan
The Startup

CoFounder at Cyfrin. Previously: Chainlink Labs.