This is a small proof of concept for testing the Decentraland SDK.
The goal of this PoC was verifying the possibility of getting the logged in user data and making http requests in the scene.
In this scene, a logged in user (connected to Metamask) can interact with a TV that retrieves a pokemon name from PokeAPI based on his wallet public key.
Note: other users can't see his pokemon.
This scene is deployed on Heroku and can be accessed with the following link:
https://decentraland-scene-test.herokuapp.com/?position=0%2C0&realm=localhost-stub
To login with your metamask wallet and try out the pokemon discovery, access it with the following link:
https://decentraland-scene-test.herokuapp.com/?position=0%2C0&realm=localhost-stub&ENABLE_WEB3
- Clone this repository
- Install dependencies:
npm i
- Install Decentraland CLI globally:
npm i -g decentraland
- Preview the scene:
dcl start
ornpm run dev
- Preview the scene with Web3:
dlc start --web3
ornpm run dev:web3
This project is not deployed to Decentraland yet.
Read more about it on Publishing a Scene.
The deployment is made to Heroku with Github Action.
See Upload a preview for details.
Learn more about how to build your own scenes in the documentation site.
Find more example scenes, tutorials and helper libraries in the Awesome Repository.