You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/lessons/projects/5.mdx
+47-18Lines changed: 47 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,34 +16,63 @@ import { LessonHeader } from '../../../components/mdx/LessonHeader'
16
16
17
17
<LessonHeadertitle="Lesson 5: Connecting to a Frontend" />
18
18
19
-
If you've been through the previous lessons we learnt how to write smart contracts,
20
-
use token standards, and test driven development, as well. But to create a full stack
21
-
decentralised application, we also need a frontend for users to interact with.
22
-
In this lesson that is exactly what we're going to create.
19
+
## About this lesson
23
20
24
-
We shall use:
25
-
-[RainbowKit](https://www.rainbowkit.com/docs/introduction) for out-of-the-box
21
+
Welcome to this final tutorial in a series on smart contract development of the ERC721 standard, a.k.a. NFTs. Throughout the previous lessons we learnt how to write smart contracts, use token standards, and utilise test driven development as well. But to create a full stack decentralised application, we also need a UI, or frontend for users to interact with. In this lesson that is exactly what we're going to create.
22
+
23
+
You can expect our familiar checkpoint questions throughout the tutorial for testing your previous knowledge, how well you’re picking up the new material, and even some on predicting upcoming steps in the lesson. They all help with critical thinking and active engagement. You'll find the updated code in side-drawers too as you progress, handy for identifying any pesky syntax errors you might come across. And of course, there is a final quiz waiting for you on completion.
24
+
25
+
Expect somewhere from one to six hours to complete the lesson, depending on your prior experience and the need to grasp new concepts. To help you maintain a steady pace and encourage breaks for rejuvenation, you'll find our pomodoro timer ⌛ in the menu header. It'll remind you to "go touch grass" and appreciate nature's role in enhancing our well-being. 🌱 Relish your journey in development in a good state of mind and body.
26
+
27
+
## What are we building
28
+
29
+
In the first in this track of tutorials, you created a basic smart contract using Remix, you then shifted to a dedicated developer's environment and created and deployed an NFT contract to an actual test network. In lesson 3 you added tiers to your NFTs and finally learnt to make your contracts airtight using tests in lesson 4. Now we're going use all of this knowledge and connect it to a frontend for users to see and interact with.
30
+
31
+
32
+
33
+
We'll create a basic **NFT minting application** that displays the three tiers of NFTs
34
+
created in our smart contract and gives users a one-click option to mint them. Once minted, users will be redirected to a page that displays information of their mint. We'll need some extra magic to make that all happen. For handling wallet connections to our application, we'll be introducing you to *RainbowKit*. And using the provided *hooks* from *WAGMI*, we can check the connection to the wallet and call functions from our smart contract through the frontend. *RainbowKit* and *WAGMI* are just another couple of shining examples of open source public goods. We love open source at *Developer_DAO*. Public goods are goood!
35
+
36
+
37
+
{/* - [RainbowKit](https://www.rainbowkit.com/docs/introduction) for out-of-the-box
26
38
wallet management (i.e. Handling wallet connections to our application).
27
39
- [WAGMI](https://wagmi.sh/) for checking connection to a wallet and calling
28
-
functions from our smart contract through the frontend using the provided *hooks*.
29
-
30
-
and create a basic **NFT minting application** that displays the three tiers of NFTs
31
-
created in our smart contract and gives users a one-click option to mint them. Once
32
-
minted, users will be redirected to a page that displays information of their mint.
40
+
functions from our smart contract through the frontend using the provided *hooks*. */}
41
+
42
+
43
+
{/* the following are headers from previous 4 lessons */}
44
+
{/* ## What are we going to do?
45
+
**By the end of this lesson we'll have learned a lot.**
46
+
### Lesson breakdown
47
+
### Quick breakdown of lesson steps */}
48
+
## Lesson steps
49
+
-
50
+
-
51
+
-
52
+
-
53
+
-
54
+
55
+
56
+
<br/><br/>
57
+
{/* **lesson 1 has no separate header. 'Tooling' incoorporated in breakdown**
58
+
**To achieve this, we'll need diverse developer tools.**
59
+
### Developer tooling
60
+
### Developer tools and libraries we'll be using */}
61
+
## Tools to get the job done
62
+
-[RainbowKit](https://www.rainbowkit.com/docs/introduction) is a React library for out-of-the-box
63
+
wallet management
64
+
-[WAGMI](https://wagmi.sh/) is a collection of React hooks that allow us to work effectively with Ethereum
65
+
-
66
+
-
67
+
-
33
68
34
69
Let's dive in!
35
-
<br/>
70
+
<br/><br/>
36
71
37
72
---
38
73
39
74
## Getting started
40
75
41
-
In the past, you've created a smart contract using Remix, you've shifted
42
-
to a dedicated code editor environment and deployed to an actual test network.
43
-
In lesson 3 you added tiers to your NFTs and finally learnt to make your contracts
44
-
airtight using tests in lesson 4. Now we're going use all of this knowledge and
45
-
connect it to a frontend for users to see and interact with.
46
-
47
76
We're going to start where we left off in lesson 4. Open your code editor and
0 commit comments