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.
-
Clone the repository:
git clone https://github.com/your-username/your-repo.git cd gamestake
-
Install dependencies for both projects:
npm install
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.
Start the Next.js development server:
npm run dev:fe
This will launch the server at http://localhost:3000.
Start a local Ethereum node using Hardhat:
npm run dev:be
The node will be accessible at http://127.0.0.1:8545/.
Execute tests for the Solidity contracts:
npm run test:be
Deploy Smart Contracts based on scripts/deploy.js:
npm run deploy:be