Examples
The best way to play with dojo.js is to install a starter project. All starter projects are based on the dojo-starter project.
React
- react-app: Simple React app link
- react-phaser-example: React app using Phaser.js link
- react-pwa-app: React Progressive Web App link
- react-threejs: React app using drei (Three.js) link
Vue
- vue-app: Simple vue link
Node
- torii-bot: Example bun bot to sync with worlds link
Quickstart
The fastest way to install an example project is by using the npx @dojoengine/create-dojo
command.
Note: Only supporting the react packages right now
- Run
npx @dojoengine/create-dojo
. - Pick
react-app
. cd react-app
.- Run
pnpm install
to install dependencies. - Run
pnpm dev
to start the project. - You need to start Katana, Torii, and run the dojo-starter project.
- Head to http://localhost:5173/.