Code Monkey home page Code Monkey logo

fundme-client's Introduction

fund-me-client

Requirements

  • git
    • You'll know you've installed it right if you can run:
      • git --version
  • Metamask
    • This is a browser extension that lets you interact with the blockchain.

Quickstart

  1. Clone the repo
git clone https://github.com/alfheimrShiven/fundme-client.git
cd html-fund-me-fcc
  1. Run the file.

You can usually just double click the file to "run it in the browser". Or you can right click the file in your VSCode and run "open with live server".

Execute a transaction

  1. Start the Anvil blockchain and Deploy the crowd-sourcing-smart-contract:

Note: You'll need to open up a second terminal

git clone https://github.com/alfheimrShiven/crowd-sourcing-smart-contract.git
cd crowd-sourcing-smart-contract
make build
make anvil

Then, in a second terminal

make deploy

This will start a local Anvil blockchain and deploy a sample contract.

  1. Update your constants.js with the new contract address.

In your constants.js file, update the variable contractAddress with the address of the deployed "FundMe" contract. You'll see it near the top of the hardhat output.

  1. Connect your metamask to your local Anvil blockchain.

PLEASE USE A METAMASK ACCOUNT THAT ISNT ASSOCIATED WITH ANY REAL MONEY. I usually use a few different browser profiles to separate my metamasks easily.

In the output of the above command, take one of the private key accounts and import it into your metamask.

Additionally, add your local Anvil network with chainid 31337 to your metamask.

  1. Finally, refresh the front end, input an amount in the text box, and hit fund button after connecting

Thank you!

If you appreciated this, feel free to follow me!

Patrick Collins Twitter Patrick Collins Linkedin

fundme-client's People

Contributors

patrickalphac avatar alfheimrshiven avatar robocrypter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.