Bridge Builders DAO
  • 🍉Welcome Builder - Start
    • 0️⃣Learning the Blockchain
      • 💜0.1 - EVM, Ethereum
    • 1️⃣Building a Currency
      • 💙1.2 - HRC-20 Harmony Token
      • 💜1.3 - FRA20 Findora Private Tokens
    • 2️⃣Building an NFT
      • 💜2.1 - ERC721 Ethereum NFT
        • 🖼️NFT Contract Minting Workshop
          • Understanding ERC721 line by line
            • (Temp - Migrating to BBD gitbook) Understanding the ERC721 Smart Contract
    • 3️⃣Building a DAPP
      • 💜3.1 - Ethereum DAPP
    • 4️⃣Applications of Blockchain
      • 🥳DeFi
      • 📦Supply Chains
    • 5️⃣Coding for Blockchains
      • 🔠Language Support
        • 💜Solidity
        • ♌Leo
          • 💙Aleo Synthesis
        • 🐿️GoLang
          • GoLang Workshop #1
        • 🦀Rust
          • 🛠️Rust Workshop
        • 🐍Python
        • 🦡C++
        • 🎯Dart
        • 🧩Michelson
      • 🖼️Frameworks
        • 🐳Docker
        • ⚛️React Framework
        • ⏩Flutter
        • 🏴‍☠️Kubernetes
      • 🌝Front-End's
        • 🟠 HTML 🔵 CSS
        • 🟡. Javascript
        • 🦊Web3.js
      • 🌚Backend's
        • 🐬SQL / NoSQL
        • 🐢Node.js
      • 👩‍💻IDE's
        • Visual Studio Code
        • Remix
    • 6️⃣Build a Bridge
      • 🤝Bridges
        • 🔐Vaults
        • 🌉Bridges
        • ☄️Light Clients
      • 🎆Blockchain API's
        • ⛅Building a REST API
        • 🔻Building a gRPC
    • 7️⃣Building a DAO
      • 🎭Vibe with the DAO
      • ⚒️DAO Tooling
    • 8️⃣Validating or Mining
      • 💜8.1 - Ethereum Node
      • 💙8.2 - Harmony Validator
      • ⚛️8.3 - Cosmos Validator
    • 9️⃣the Bridge Builders DAO.
      • 🥳Bridge Builder DAO Proposal
        • 📜Bridge Builder DAO - Charter
    • 🔟Full Stack dApp's
      • 👷React/Hardhat env Set-up
  • 🕚Synthesis of Blockchains
    • Findora
    • Aleo
    • Aurora
Powered by GitBook
On this page
  • How to quickly launch React/hardhat Config
  • Begin project
  1. Welcome Builder - Start
  2. Full Stack dApp's

React/Hardhat env Set-up

PreviousFull Stack dApp'sNextSynthesis of Blockchains

Last updated 3 years ago

How to quickly launch React/hardhat Config

#React #hardhat #waffle #ethers.js #Yarn

Tools

Waffle - is a library for writing and testing smart contracts. Sweeter, simpler and faster than Truffle. Works with ethers-js.

Chai - Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

Hardhat - Hardhat is an Ethereum development environment for professionals. It facilitates performing frequent tasks, such as running tests, automatically checking code for mistakes or interacting with a smart contract. ... Developed by Nomic Labs and funded by an Ethereum Foundation grant.

Yarn - Yarn is a new package manager that replaces the existing workflow for the npm client or other package managers while remaining compatible with the npm registry. It has the same feature set as existing workflows while operating faster, more securely, and more reliably


⚠️ WARNING : DO NOT INSTALL DEPENDENCIES ON GLOBAL TERMINAL OR COMMAND LINE, install dependencies on a local environment. mkdir _name → cd _name → run the rest of the test's.

Troubleshoot pictures

Begin project

0. in order to make this work, you will need to download yarn globally to run your dependencies. Download and install node package manager to get yarn: npm install --global yarn,

  1. Once installed, you will want to start your new react project. RUn the following command, and lowercase the _name of your project ; npx create-react-app _name and then confirm with (y).

2. then jump into your newly created directory using the list of functions react provides for you above. cd react-dapp and grab the ls of the packages inside.

3. Then you will need to install your all of your dependencies. This includes Hardhat, which will quickly create your dependencies. to do so, run this command locally in your projects directory → yarn add ethers hardhat @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers : this will add the latest testing packages into your project like waffle, chai and ethers to work with hardhat.

4. Start Hardhat

  • Run npm init and fill in any of the details you believe to be nessesary. Then, install hardhat npm install --save-dev hardhat.

  • now that har hat is initiated, run to create your contract samples and configuration files.npx hardhat

💡 In my experience.. Going from the terminal / command line → over to the Code editor and using random virtual packages like hardhat or any of these technologies, will help build your projects. You can always make code that will run a few packages, but the hardest part about coding is making sure that all the different packages and downloads and languages you use work together. Once you know what you're using and development does seem so scary anymore.. you will start to realize that the person who built it already made a best attempt to make it easier for you to develop. Once you get over the hurdle of deploying your environment, you have to know a little code as you already do, and you need the patients to solve problems on your own. How? You ask people, you team up with others to solve problems. You ask for help!!

ethers.js - The ethers.js library aims to be a complete and compact library for interacting with the Ethereum Blockchain and its ecosystem. It was originally designed for use with and has since expanded into a more general-purpose library.

🍉
🔟
👷
ethers.io
Click yes all the way through... then you will have your own contracts folder ready with the configuration files all ready to go inside of any code editor you want to open and start using Your code editor.