KaizeNodeLabs / stark-cairo-nodes

Set of scripts written in Cairo/Starknet to learn and teach newcomers the ecosystem.
MIT License
16 stars 21 forks source link

stark-cairo-nodes πŸ”—πŸ’‘

πŸ“– Overview

stark-cairo-nodes is a collection of educational scripts built using the Cairo programming language, specifically designed for the Starknet ecosystem. These scripts are ideal for both beginners and intermediate developers looking to deepen their understanding of Cairo and Starknet concepts.

βš™οΈ Steps to Build and Run Cairo Scripts

1. πŸ› οΈ Set Up Your Environment

  asdf plugin add scarb
  asdf install scarb latest
  asdf global scarb latest
scarb --version

2. πŸ“‚ Navigate to the Scripts Directory

First, navigate to the general cairo/scripts/ directory:

cd cairo/scripts/

Then, navigate to the specific script's directory you want to run. For example, if the script you want to execute is in a folder named example_script, navigate into that directory:

cd example_script

3. πŸ—οΈ Build the Project

Build the project with the following command:

scarb build

4. πŸš€ Run the Script

To execute the main function of the script, use:

scarb cairo-run

Give us a star! ⭐