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.
- 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.
- 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.
- Voting DApp
A voting contract with candidates, voter tracking, a voting window and events, tested in Remix.
- 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.
- Rent Agreement Smart Contract – Deploying with Hardhat
Build a rent agreement contract in a Hardhat project, write tests for it and deploy it.
- 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.
- Lottery Application with React
Connect the lottery contract to a React front end with web3.js and MetaMask.
- 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.
- 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.
- 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.
- Why and When to use Nodejs?
What Node.js is good at, where it struggles, and when to choose it for a project.
- 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.
- How to Create RESTful API with Express
Why Express exists and how to build a RESTful API with routes and middleware.
- 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.