Skip to content

The ByteBeasts backend hosts all the Dojo contracts that define the game's logic and mechanics.

License

Notifications You must be signed in to change notification settings

ByteBuildersLabs/ByteBeastsBackend

Repository files navigation

ByteBeats official logo

Telegram Chat

Maintainers 🥷

Maintainer: danielcdz
danielcdz
Maintainer: Marco
Marco

Byte Beasts: Official Guide 🐉🎮

The official Byte Beasts guide, the quickest and most streamlined way to get your Dojo provable game up and running. This guide will assist you with the initial setup, from cloning the repository to deploying your world.

Read the full tutorial here.

Prerequisites 📋

To be able to run the ByteBeasts backend you need to have Git, Rust and Scarb installed on your PC to satisfy Dojo dependencies. You can install them with the following steps:

Install Rust 🦀

Go to the Rust installation page

After installing Rust, ensure your PATH environment variable includes the Cargo bin directory (usually $HOME/.cargo/bin).

Install Git 🧑‍💻

Go to the Git installation page and follow the instructions for your operating system to install Git.

Install Scarb ⚙️

The Dojo toolchain integrates Scarb to build and run Dojo projects, installation instructions are here.

Install Dojo using dojoup 🥋

You can install with the dojoup version manager which enables you to easily install, update and manage your Dojo installation.

Install dojoup 🛠️

curl -L https://install.dojoengine.org | bash

Install the Dojo v1.0.0-alpha.5 release 🚀

dojoup --version 1.0.0-alpha.5

Install Dojo using asdf 📦

You can alternatively use the asdf package manager to install and manage your Dojo installation.

Install asdf

Follow the asdf installation instructions

Add the asdf-dojo plugin 🔌

asdf plugin add dojo https://github.com/dojoengine/asdf-dojo

Install the latest or a specific version 🆕

asdf install dojo latest      # For the latest version
asdf install dojo 0.7.0       # For a specific version

Set the global or local version 📁

asdf global dojo latest       # Set globally
asdf local dojo 0.7.0         # Set locally in your project directory

Setup the hooks

This project uses Git hooks to ensure code quality and prevent issues before they reach the remote repository.

Pre-push Hook

We have implemented a pre-push hook that automatically runs tests before any code is pushed to the remote repository. This helps maintain code quality and prevents broken code from being pushed.

What it does
  • Runs sozo test automatically before each push
  • Blocks the push if tests fail
  • Allows the push to proceed only if all tests pass
Setup Instructions
# Run Katana
make init

Running Locally 🖥️

Terminal one (Make sure this is running) 🏃

# Run Katana
make katana

Terminal two 🔄

# Build migrate and start torii
make setup

Contribution 🤝

We welcome contributions from developers of all levels! If you're interested in contributing to this project, please follow our CONTRIBUTION GUIDELINES to get started.

Whether it's fixing bugs, improving documentation, or adding new features, your help is greatly appreciated. Don't hesitate to ask questions or reach out for support—we're here to help!

Communication channel 📢

If you're a contributor or would like to connect with the project maintainers, feel free to join our Telegram group!

About

The ByteBeasts backend hosts all the Dojo contracts that define the game's logic and mechanics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages