Comments (14)
@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:
- Install rust and use
cargo
, install here. - Clone the Dojo repo.
cargo run --bin sozo
to build sozo only.cargo test -p sozo
to run tests on sozo.- Start a katana with
katana --disable-fee
(Katana binary can be run from dojo up installation or withcargo run --bin katana
). - 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.
Hi, can I take this issue?
from dojo.
Hi, can I take this issue?
Fore sure, assigned! Please don't hesitate if you have any questions.
from dojo.
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.
Integrate in the logging the env variables mentioned by @kariy here: https://github.com/dojoengine/dojo/pull/1405/files#r1446910564.
from dojo.
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.
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:
dojo/bin/sozo/src/commands/test.rs
Line 118 in 68e81f6
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.
Hey @DanielUH2019 how do you feel about this issue? Any update?
from dojo.
Hi @DanielUH2019, if you haven't started on this one can I work on it?
@glihm, @tarrencev
from dojo.
Hi @Tirth1, I couldn't continue working on that. I'll unassign myself from the issue.
from dojo.
@glihm can I work on this?
from dojo.
@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.
@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.
@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)
- Sozo init should clone the correct version of starter template HOT 2
- ci: Github Action for `cargo-udeps` failed
- Torii client compile error when importing v1.0.0-alpha.3 release HOT 2
- feat(world): make fields as keys in events where possible HOT 2
- katana: expose db metrics
- Update sozo with latest account_sdk
- Sozo controller deployment flow
- Events annotated by `#[dojo::event]` are not annotated as event in ABI HOT 1
- Add error message or warning for migrations with `print`s HOT 6
- Expose `resources` map in world API HOT 5
- feat(sozo): require manual confirmation from user before sending transaction if any anomaly is detected HOT 8
- [torii] Benchmarks HOT 1
- [torii-core] `pending_block_tx_cursor` logic doesn't work as expected HOT 1
- ci: Github Action for `cargo-udeps` failed HOT 1
- testing: dump state and initialize katana from dumped state for test runner HOT 2
- [BUG] `sozo init` command no longer works as documented HOT 4
- katana: separate node services (ie block production, messaging) into their own tasks
- ci: Github Action for `cargo-udeps` failed
- feat: add a systems list in the contract manifest entry
- katana: put `katana` api under dev mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dojo.