ByteBuildersLabs / ByteBeastsBackend

The ByteBeasts backend hosts all the Dojo contracts that define the game's logic and mechanics.
MIT License
14 stars 18 forks source link
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
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!