The popular game 2048 comes to the web3 ecosystem as a decentralized application. Login to the application using your Unstoppable Domains account. Play the game and save your scores to the blockchain. Compete with other players to get the top scores.
Before being able to run the application, you will need login credentials from Unstoppable Domains. The New Redirect URIs
should be set to http://localhost:5000/app
and the New Post Logout Redirect URIs
should be set to http://localhost:5000/home
.
You will also need create a Moralis server and get the Server URL
and App ID
credentials. The ScoreKeeper smart contract is currently only deployed on the Rinkeby (Ethereum Testnet) network and the Mumbai (Polygon Testnet) network.
Place your credentials in a .env
file in the root folder with the following keys:
# .env
VITE_UD_ID= your Unstoppable Domains application's Client ID
VITE_UD_SECRET= your Unstoppable Domains application's Client Secret
VITE_UD_REDIRECT_URI=http://localhost:5000/app
VITE_UD_LOGOUT_URI=http://localhost:5000/home
VITE_MORALIS_SERVER_URL= your Moralis server's Server URL
VITE_MORALIS_APP_ID= your Moralis server's App ID
# Install Dependencies
yarn
# Run for development
yarn dev
The application will be available on http://localhost:5000
# Build App
yarn build
# Serve App
yarn serve
- The dapp is set to run on the Rinkeby (Ethereum Testnet) network and the Mumbai (Polygon Testnet) network. However, only the Rinkeby (Ethereum Testnet) network seems to be working properly at the moment