Giter VIP home page Giter VIP logo

Comments (14)

glihm avatar glihm commented on August 14, 2024 2

@glihm: I'm trying to explore code and documents, but I couldn't find the steps to run the project from source code.

We've an issue pending for tracking this missing info (#1711), the detailed setup will be covered soon.

As @kariy mentioned you will need:

  1. Install rust and use cargo, install here.
  2. Clone the Dojo repo.
  3. cargo run --bin sozo to build sozo only.
  4. cargo test -p sozo to run tests on sozo.
  5. Start a katana with katana --disable-fee (Katana binary can be run from dojo up installation or with cargo run --bin katana).
  6. Do a migration to have some sozo code being executed: cargo run --bin sozo -- migrate apply --manifest-path ./examples/spawn-and-move/Scarb.toml.

from dojo.

DanielUH2019 avatar DanielUH2019 commented on August 14, 2024 1

Hi, can I take this issue?

from dojo.

glihm avatar glihm commented on August 14, 2024 1

Hi, can I take this issue?

Fore sure, assigned! Please don't hesitate if you have any questions.

from dojo.

DanielUH2019 avatar DanielUH2019 commented on August 14, 2024 1

Hey, sorry for the delay. I've been very busy this week, but I'm still committed to solving this issue. I'm not sure if I'll be able to address it before the OnlyDust Hack ends, but I'll do my best.

from dojo.

glihm avatar glihm commented on August 14, 2024

Integrate in the logging the env variables mentioned by @kariy here: https://github.com/dojoengine/dojo/pull/1405/files#r1446910564.

from dojo.

DanielUH2019 avatar DanielUH2019 commented on August 14, 2024

I've been exploring the code and I'm not sure I understand the problem well. Could you provide more details on what the desired behavior should be?

from dojo.

glihm avatar glihm commented on August 14, 2024

Hey @DanielUH2019!
Sozo is lacking of logging, and a developer should be able by setting the RUST_LOG=trace to have more context on what sozo is doing. The idea of this issue is adding logs in important places where we would appreciate more information while sozo is running.

For the structured loggin, take this example:

trace!(?project_config);

This should use something like:

trace!(?project_config, "project config"); 

Like so, sozo logs can easily be parsed by other tools when running on the cloud or monitored environment.

from dojo.

glihm avatar glihm commented on August 14, 2024

Hey @DanielUH2019 how do you feel about this issue? Any update?

from dojo.

btirth avatar btirth commented on August 14, 2024

Hi @DanielUH2019, if you haven't started on this one can I work on it?
@glihm, @tarrencev

from dojo.

DanielUH2019 avatar DanielUH2019 commented on August 14, 2024

Hi @Tirth1, I couldn't continue working on that. I'll unassign myself from the issue.

from dojo.

btirth avatar btirth commented on August 14, 2024

@glihm can I work on this?

from dojo.

glihm avatar glihm commented on August 14, 2024

@glihm can I work on this?

Hey @Tirth1! For sure go ahead!
Sozo is being reworked on several points currently, you may have to rebase depending on where your PR is being opened. :)

from dojo.

btirth avatar btirth commented on August 14, 2024

@glihm: I'm trying to explore code and documents, but I couldn't find the steps to run the project from source code.

from dojo.

kariy avatar kariy commented on August 14, 2024

@glihm: I'm trying to explore code and documents, but I couldn't find the steps to run the project from source code.

you can run sozo using:

cargo run --bin sozo

from dojo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.