Skip to content

A testing scene for Decentraland that retrieves the user's pokemon name

Notifications You must be signed in to change notification settings

Markkop/decentraland-scene-test

Repository files navigation

⛰️ Decentraland Scene Test

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.

Demo

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

Images

Logged in Screen

Pokemon Result

Logged Off

Setup and Development

  • Clone this repository
  • Install dependencies: npm i
  • Install Decentraland CLI globally: npm i -g decentraland
  • Preview the scene: dcl start or npm run dev
  • Preview the scene with Web3: dlc start --web3 or npm run dev:web3

Deployment

Decentraland

This project is not deployed to Decentraland yet.
Read more about it on Publishing a Scene.

Heroku

The deployment is made to Heroku with Github Action.
See Upload a preview for details.

Resources

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.

Join Decentraland's Discord

About

A testing scene for Decentraland that retrieves the user's pokemon name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published