GithubHelp home page GithubHelp logo

niteeshputla / block-battle-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 223 KB

BlockBattle is the battle fought by Ethereum and its users to solve the scalability Trilemma.

Home Page: https://github.com/NiteeshPutla/block-battle-backend

Solidity 37.80% TypeScript 62.20%

block-battle-backend's Introduction

Block Battle App

Block Battle is a game where you battle out Trilemma monsters to help Ethereum achieve its full potential.

Technology Stack

  • Vue.js
  • React
  • Typescript
  • Javascript
  • TailwindCSS
  • HTML/CSS

Contract Details

Project Layout

Top Level folders

  • /contracts - contains the solidity contract
  • /scripts - deployment scripts

Important Files

  • package.json - node modules to be installed, etc.
  • hardhat.config.js - solidity version and run information, deployment network configuration
  • .env.example - To store Infura/Alchemy API keys and your private key

Cloning and Deploying the Dapp on Sepolia Testnet

  1. Clone this repo :

     `git clone https://github.com/NiteeshPutla/block-battle-backend.git`
    
  2. Go to the root directory and install all node packages

    • cd block-battle-backend
    • npm install

Deploy with Hardhat

  1. If you haven't already, install nodejs and yarn.
  2. Run yarn install to install dependencies.
  3. Create a .env file following the example .env.example in the root directory. Change PRIVATE_KEY to your own account private key in the .env.
  4. Run yarn compile to compile the contract.
  5. Run yarn deploy:scrollTestnet to deploy the contract on the Scroll Sepolia Testnet.
  6. Run yarn test for hardhat tests.

Block Battle Contract

Block Battle is a game where you battle out Trilemma monsters to help Ethereum achieve its full potential.

Technology Stack

  • Built on Scroll Sepolia Blockchain
  • Solidity
  • Typescript
  • Javascript
  • Hardhat
  • Etherjs
  • Metamask
  • Tailwind CSS

Project Layout

Top Level folders

  • /contracts - contains the solidity contract
  • /scripts - deployment scripts

Important Files

  • package.json - node modules to be installed, etc.
  • hardhat.config.js - solidity version and run information, deployment network configuration
  • .env.example - To store Infura/Alchemy API keys and your private key

Cloning and Deploying the Dapp on Sepolia Testnet

  1. Clone this repo :

     `git clone https://github.com/NiteeshPutla/block-battle-backend.git`
    
  2. Go to the root directory and install all node packages

    • cd block-battle-backend
    • npm install

Deploy with Hardhat

  1. If you haven't already, install nodejs and yarn.
  2. Run yarn install to install dependencies.
  3. Create a .env file following the example .env.example in the root directory. Change PRIVATE_KEY to your own account private key in the .env.
  4. Run yarn compile to compile the contract.
  5. Run yarn deploy:scrollTestnet to deploy the contract on the Scroll Sepolia Testnet.
  6. Run yarn test for hardhat tests.

block-battle-backend's People

Contributors

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