Deploy an Ethereum Smart Contract in 6 Steps
Tutorial: How To Develop, Test & Deploy An Ethereum Smart Contract To Public Testnet
Published in
8 min readMar 17, 2020
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:
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:
- Setup
- Creating Our Project
- Writing The Smart Contract
- Compile and Migrate
- Testing
- 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
.