Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1021 Bytes

README.local.md

File metadata and controls

62 lines (41 loc) · 1021 Bytes

Install Local Environment

Prerequisites

Install asdf

Follow the asdf installation instructions.

Install dojo

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

Install scarb

asdf plugin add scarb
asdf install scarb 2.8.4

Running Locally

Terminal one (Make sure this is running)

# Run Katana
katana --dev --dev.no-fee --http.cors_origins "*"

Terminal two

# Build the example
sozo build

# Migrate the example
sozo migrate

# Initialize the pixelaw app
scarb run init_auth

# Start Torii
torii --world 0x2bf4d3aa0dced89d37d8c3b4ff6a05895c0af32ff3baf9b02abf8504e53eaad --http.cors_origins "*"

How to deploy

you can deploy your app to our katana testnet by running the following commands:

# Deploy the pixelaw app
sozo build -P release
sozo migrate apply -P release