Before we dive into coding

Introduction

This tutorial aims at making you discover how to code in solidity in order to interact with the blockchain. You are going to learn how to code a Smart Contract, deploy a NFT and mint it in your wallet.

To write this assignment, I was greatly inspired by an article published on freecodecamp. This site is a real gold mine if you want to learn how to code or simply familirize yourself with the computer science world. Every content is free of access and of very good quality, have a look here : https://www.freecodecamp.org/.

<aside> 🛠 Disclaimer This tutorial is easily accessible if you are familiar with programming tool. If it’s the first time you hear about terminal, bash, code editor or node.js, you may need to spend a little bit more time reading outside documentations to get familiar with these notions. Along this tutorial I put external links for you to get more information. It’s not wasted time for you to do so as it’s more and more useful to understand what these tools are used for in our society where computer science takes a growing part in our lives.

</aside>

If you have any question, feel free to contact me by mail : [email protected].

Open your crypto wallet

First we need to open a wallet to store our crypto currency and our digital assets.

There are many wallet provider, but I advice you to open a MetaMak wallet as it is one of the most spread.

<aside> đź’ˇ Here is a nice **tutorial** to open a MetaMask Ethereum wallet.

</aside>

Design your avatar

We are going to code a smart contract hosting a NFT. This NFT will be your “avatar” for the class. Design an avatar that you will eventually mint as a NFT. It can be whatever you want but it should be a png file.

Download a source code editor

A source code editor is a software that enables you to open (almost) any type of code file. This will make it possible for you to open, edit and write your own programs.

If you don’t already have one I advice you to download VScode or Sublime text. If you are a beginner, you should choose VScode as it provides more hand-holding and is a great option for its debugging functionality.

<aside> đź’ˇ Here is a tutorial on how to install VScode and Sublime Text.

</aside>

Install Node.JS on your computer

We will be using NodeJS for the project.

<aside> đź’ˇ If you don't have it installed, follow this simple tutorial : https://phoenixnap.com/kb/install-node-js-npm-on-windows.

</aside>

Connect to an Ethereum node with Alchemy