-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
takundachirema edited this page Apr 23, 2025
·
6 revisions
The Set Up is part of the assignment. These are steps we already covered during the tuts. You will just be using a different Git Repository.
- Navigate to a directory/folder of your choice using
cd example/directoryand run the following git command in your terminal:
git clone https://github.com/FinHubSA/EthereumClassAssignment-2025.gitYou’ll find two main packages in the packages directory:
- hardhat: This package contains the Hardhat framework, which is used for compiling, testing, and deploying smart contracts.
- nextjs: This package holds the code for the frontend application built with Next.js. It includes everything related to the user interface that interacts with your deployed smart contracts.
- These packages help separate the backend (smart contracts) and frontend (UI), streamlining the development process.
- Run
yarn installto install the nodejs libraries
yarn install- Open your VSCode and click on
filethenopen folder. Find the folder you cloned your project into, click on it and then clickopenon the popup window.
- Open a terminal on you VSCode. Let’s start by running a local blockchain in a terminal with
yarn chain.
yarn chain- Open a second terminal and run the command
yarn deploy, which will compile and deploy the YourContract.sol smart contract, located in thepackages/hardhat/contractsfolder, in the local blockchain.
yarn deploy- In a third terminal, run
yarn startto launch the frontend of your application.
yarn start- Open your browser and enter the url
http:localhost:3000
This is the home page of Scaffold-ETH that we find at localhost:3000:
- The submission for this assignment will be a github link to your own private repository.
- On your github account create a new
privaterepository called EthereumClassAssignment-2025. Please refer to Step 2 of the tutorials guide.
NOTE: Make your the assignment repository private
- Add me email as a collaborator on your private repository so that I can view and mark your assignment when you are done.
Go to
settingson your github account
Select
collaborators
Select
add peopleand add this email address to your repositorytakunda.chirema@alumni.uct.ac.za
- Set your origin url to be your newly created repository. Please refer to Step 2 of the tutorials guide.
- Set your upstream url to be FinHub's assignment repository. Please refer to Step 3 of the tutorials guide.