Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧪 How to test
Setup the database
The binary will start the
graphql-server
service and therefore needs a PostgreSQL instance to connect to. You should follow the instructions in thedata
crate README file to get a populated database you can interact with.Build
graphql-server
The
cartesi-node
command assumes the executables (graphql-server
in this case) are present in the PATH variable. So you'll first need to build it with cargo and then add it to your PATH. For example:Inside
offchain/graphql-server
:and then:
PATH="{path to your workspace}/rollups-node/offchain/target/debug:${PATH}"
Run the
cartesi-node
commandFrom the project's root, just run:
The server should have started and to verify it you can interact with it via the GraphQL Playground at
http://localhost:4000/graphql
Closes #91