This is a forked and rewritten repo from the gamba platform.
A demo frontend featuring multiple casino games built on Gamba.
Simply provide your own wallet address to the <Gamba />
provider and start collecting fees on every bet made on your platform.
To get started with the Gamba Demo, follow these steps:
-
Fork and Clone the Repository
git clone https://github.com/BankkRoll/Gamba-V2-Next.js.git cd Gamba-V2-Next.js
-
Install Dependencies
Run the following command to install the necessary dependencies:
npm install
-
Configure your RPC and Creator
-
Upload to Vercel: For deployment, it is recommended to upload your project to Vercel. Ensure that you set the necessary environment variables (
NEXT_PUBLIC_RPC_ENDPOINT
andNEXT_PUBLIC_PLATFORM_CREATOR
) in the Vercel dashboard under the project settings. -
Environment Variables: If you choose to publish your env on GitHub, make sure to use environment variables securely. Rename the
.env.example
file to.env
and update the RPC with your RPC. I would suggest setting up domain on helius RPC access control rules for your api key if publishing to github.
### Web3 connection NEXT_PUBLIC_RPC_ENDPOINT="<HELIUS API KEY>" ### Creator address NEXT_PUBLIC_PLATFORM_CREATOR="<SOLANA WALLET ADDRESS>"
-
-
Configure your platform
Edit the constants.ts and configure ALL OF YOUR INFO LINE BY LINE:
- Platform FEEs
- MetaTags SEO
- Footer Links
- Supported Tokens
- ect.
To add a custom token to your platform, Update/Add to the following section with your custom token's details:
Add Public Pool
{ mint: new PublicKey("So11111111111111111111111111111111111111112"), name: "Solana", symbol: "SOL", image: "/logo.png", decimals: 9, baseWager: 0.01e9, }
Add Private Pool
{ mint: new PublicKey(""), poolAuthority: new PublicKey(""), // REQUIRED FOR PRIVATE POOLS name: "", symbol: "", image: "", decimals: 0, baseWager: 0, },
-
Run the Application
Start the development server:
npm run dev
Visit http://localhost:3000
in your browser to view the app.
- Contributing: We welcome contributions! If you have improvements or fixes, please submit a pull request and include details about your changes.
- Acknowledgments: Special thanks to the original gamba platform for the inspiration behind this project.
This project is licensed under the MIT License.