Giter Site home page Giter Site logo

boardcells's Introduction

BoardCells Web Application

This is a simple web application that allows you to query and display colors for specific cells on a board. You can specify the coordinates of the cells, and the application will retrieve the color associated with those coordinates from a smart contract on the Ethereum blockchain.

Getting Started

Prerequisites

Before you begin, ensure you have the following dependencies installed:

  • MetaMask: A digital wallet for interacting with Ethereum applications.
  • Node.js: JavaScript runtime for running web applications.

Installation

  1. Clone this repository:

    git clone https://github.com/your-username/BoardCells.git
  2. Navigate to the project directory:

    cd BoardCells
  3. Install the required packages:

    npm install

Usage

  1. Start the development server:

    npm start
  2. Open your web browser and navigate to http://localhost:3000.

  3. Connect Your Wallet: Click the "Connect Wallet" button to connect your MetaMask wallet.

  4. Query Cell Color:

    • Enter the X and Y coordinates of the cells you want to query in the input fields (X1, X2, Y1, Y2).
    • Click the "Submit" button.
  5. View Results:

    • The color of the specified cells will be displayed in the corresponding boxes on the board.

Smart Contract

This application interacts with an Ethereum smart contract deployed at the address 0x2158F6d159148F7FD585E58F0cA77c47E55a2C22. The contract ABI is provided in the code.

Troubleshooting

  • If MetaMask is not detected, please make sure you have it installed and unlocked in your browser.
  • Ensure that you have provided valid coordinates (between 0 and 35) when querying cell colors.

boardcells's People

Contributors

mujibat 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.