Code Monkey home page Code Monkey logo

dojo.js's Introduction

Dojo: The Provable Game Engine

Dojo is a community driven open-source, Provable Game Engine, providing a comprehensive toolkit for building verifiable games and autonomous worlds.

Here's a more refined and structured version:


Dojo Engine Packages Monorepo

This is a monorepo for the dojo engine npm packages.

Available Packages:


Environment Setup

  1. Bun Installation: We use bun in this repository. To install it, run:
    curl -fsSL https://bun.sh/install | bash

Development

Package Dependencies Installation:

From the repository root, run the following to install all the necessary package dependencies:

bun install

Package Linking:

To link the packages to the examples or your own project, from the root directory, run:

bun link

Building Packages:

Note: Before running the examples, you must build each package.

To do so, navigate to a specific package directory and run the command below. This will initiate bun in watch mode, which will automatically compile and update based on local changes:

bun run build --watch

To build all packages, from the root directory, run:

bun run build

To watch for changes on all packages in parallel, from the root directory, run:

bun run build-watch

Dojo starter:

To install dojo-starter submodule, run:

git submodule update --init --recursive

Examples

To scaffold a new project from an example:

npx @dojoengine/create-dojo

If you have issues on WSL, install package first then run command :

npm i @dojoengine/create-dojo -g
npx @dojoengine/create-dojo

To run the examples that have the linked packages, follow the steps below:

Terminal 1: Set up the dojo starter with specific configurations.

cd examples/dojo-starter
katana --disable-fee --block-time 1000

Terminal 2: Build and migrate the dojo starter.

cd examples/dojo-starter
sozo build
sozo migrate

Terminal 3: Start the React app.

cd examples/<package>
bun install
bun dev

dojo.js's People

Contributors

ponderingdemocritus avatar notv4l avatar shramee avatar kariy avatar rsodre avatar matth26 avatar aymericdelab avatar qgpcybs avatar broody avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.