Skip to content

GameStake-Sport/gamestake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Stake Monorepo Overview

This monorepo contains two projects: a Solidity backend using Hardhat, and a frontend using Next.js. Below are the instructions to set up and run both projects.

Requirements

  • Node.js (recommended version: 14.x or higher)
  • NPM

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/your-repo.git
    cd gamestake
  2. Install dependencies for both projects:

    npm install

Project Structure

  • backend/: Solidity project with Hardhat.
  • frontend/: Next.js frontend project.
  • docs/: Documentation about the project.
  • package.json (root): Manages scripts and workspaces for both projects.

Available Commands

Run the Frontend (Next.js)

Start the Next.js development server:

npm run dev:fe

This will launch the server at http://localhost:3000.

Run the Backend (Hardhat Solidity)

Start a local Ethereum node using Hardhat:

npm run dev:be

The node will be accessible at http://127.0.0.1:8545/.

Run Tests for the Backend

Execute tests for the Solidity contracts:

npm run test:be

Deploy for the Backend

Deploy Smart Contracts based on scripts/deploy.js:

npm run deploy:be

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published