Smart contracts and Node.js, built one step at a time.

Hands-on tutorials that start from an empty folder and end with working code: Solidity contracts, DApps with React and Next.js, NFTs, and Node.js APIs. Each path below is meant to be followed in order.

Start with your first contract16 tutorials in 6 paths

Learning paths

Smart contracts: the basics

Write, deploy and test small Solidity contracts in Remix.

  1. Basic Smart Contract: Lottery Application

    A Solidity lottery: players enter with exactly 0.1 ETH, and once three have joined, the admin picks a winner.

  2. Basic Smart Contract: Transferring Ether from User to Participant with a Time Lock

    Send ether to participants with a time lock, so they can only withdraw it after the lock period ends.

  3. Voting DApp

    A voting contract with candidates, voter tracking, a voting window and events, tested in Remix.

  4. Crowdfunding Smart Contract

    A crowdfunding contract where contributors vote on spending requests before the owner can withdraw funds.

Smart contracts: going further

Move to Hardhat, write tests and deploy to a test network.

  1. Rent Agreement Smart Contract – Deploying with Hardhat

    Build a rent agreement contract in a Hardhat project, write tests for it and deploy it.

  2. Creating a DAO and Deploying on Polygon Test Network

    A DAO with members, proposals and one-member-one-vote, deployed to the Polygon test network.

Full DApp projects

Put a React or Next.js front end on top of a contract.

  1. Lottery Application with React

    Connect the lottery contract to a React front end with web3.js and MetaMask.

  2. Kickstarter Application with Next.js

    A Kickstarter-style crowdfunding DApp with a multi-page Next.js front end.

NFTs

Deploy an ERC-721 contract on Sepolia, then mint from code.

  1. How to Create an NFT on Ethereum Sepolia Test Network – Part 1

    Write and deploy an ERC-721 contract on the Sepolia test network with MetaMask, Solidity and Hardhat.

  2. How to Mint an NFT from Code – Part 2

    Store NFT metadata on IPFS with Pinata and mint tokens from a Node.js script using ethers.

Node.js

From a first script to a REST API backed by MongoDB.

  1. Why and When to use Nodejs?

    What Node.js is good at, where it struggles, and when to choose it for a project.

  2. Creating an Entry Level Node.js Project

    Read and write files, run a simple web server, route pages and serve a small API with plain Node.js.

  3. How to Create RESTful API with Express

    Why Express exists and how to build a RESTful API with routes and middleware.

  4. Using MongoDB with Mongoose

    Model data with Mongoose schemas and connect an Express API to MongoDB.

Setup guides

Install the tools the other tutorials rely on.

  • Hardhat Installation

    Install Hardhat, start a project, then compile and run its tests.

  • MongoDB Installation

    What MongoDB is, its main features, and how to install it and run it locally.