Cryptobet is a decentralized betting application. The project is divided into two main parts: the backend, which uses Hardhat for smart contract development and deployment, and the frontend, which is built using Next.js.
Backend: This folder contains the smart contracts and related scripts for deployment. The contracts are written in Solidity and are deployed on the Sepolia test network using Hardhat.
To compile the contracts, use:
npx hardhat compile
To deploy the contracts locally, use:
npx hardhat ignition deploy ./ignition/modules/your_contract.js
To deploy the contracts on the Sepolia network, use:
npx hardhat ignition deploy ./ignition/modules/your_contract.js --network optimismSepolia
Frontend: This folder contains the web application built with Next.js. The frontend interacts with the smart contracts and provides a user interface for placing bets and viewing outcomes.
Ensure you have Node.js and npm installed. You will also need Hardhat and Next.js to run the backend and frontend, respectively.
Clone the repository:
git clone https://github.com/yourusername/cryptobet.git
Install dependencies for the backend:
cd backend
npm install
Install dependencies for the frontend:
cd ../frontend
npm install
Open your browser and navigate to http://localhost:3000
to view the application.
We appreciate the contributions of the following individuals to this project: