Try the game: https://coinflip.ludex.gg/
This project allows for players (or testers) to join a Ludex challenge using the Ludex Javscript SDK. Once players join, they wager on a simple coin flip game. The backend logic is also handled in this repo under pages/api/*
.
The Ludex Javascript SDK allows web apps to interact with Ludex APIs and smart contracts. It also has integration with Web3auth for passwordless authentication and non-custodial key infrastructure for wallets.
First, install the dependencies:
npm install
then add environment variables in .env (get them from netlify or another dev)
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=
LUDEX_KEY=
REACT_APP_PROTOCOL_API=
then run the development server and open http://localhost:3000 with your browser!
npm run dev
We deploy our this app using Netlify. In order to get access ask another dev to join the Netlify team.