Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add explorer flag and build folder #2997

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ayushtom
Copy link

@ayushtom ayushtom commented Feb 6, 2025

Description

This PR aims to add a explorer in the dojo toolchain by spawning a vite react project on spinning up a katana instance

Related issue

Tests

  • Yes
  • No, because they aren't needed
  • No, because I need help

Added to documentation?

  • README.md
  • Dojo Book
  • No documentation needed

Checklist

  • I've formatted my code (scripts/prettier.sh, scripts/rust_fmt.sh, scripts/cairo_fmt.sh)
  • I've linted my code (scripts/clippy.sh, scripts/docs.sh)
  • I've commented my code
  • I've requested a review after addressing the comments

@kariy kariy self-requested a review February 6, 2025 16:11
}

impl NodeArgs {
pub async fn execute(&self) -> Result<()> {
// Initialize logging first
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Initialize logging first

Those comments don't add any relevant information.

self.init_logging()?;

// Finally start the node
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Finally start the node

})
}

pub fn start(&self) -> Result<()> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible at this point to inject the Katana url (which can be modified by the user) into the env somehow, which would make the explorer always indexing by default the katana that has just started?

_ => "application/octet-stream",
};

let response = Response::from_data(content)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even with those headers, when I start Katana without providing the build path into explorer repo (/dist), I have those errors:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants