Skip to content

Add Quick Start tutorial #357

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

Closed
wants to merge 4 commits into from
Closed

Add Quick Start tutorial #357

wants to merge 4 commits into from

Conversation

yarikbratashchuk
Copy link
Contributor

@yarikbratashchuk yarikbratashchuk commented May 1, 2024

The most basic tutorial for running sovereign rollup node without knowing anything (da/consensus/config/etc.)

  • Has a script for installing Go from source, platform agnostic.
  • Has a script for installing Rollkit cli by building it from source under the hood

Closes: #361

Summary by CodeRabbit

  • New Features
    • Added a "Quick start guide" to the sidebar for easier access.
    • Updated the "Starter Rollup" link in the hero section to point to the new quick start tutorial.
    • Introduced automated scripts for installing and updating Go, and for building and installing Rollkit.
    • Added a new quick start guide for launching a sovereign rollup node using Rollkit CLI in the tutorials section.
  • Documentation
    • Enhanced documentation with updated links and new guide entries.

Copy link
Contributor

coderabbitai bot commented May 1, 2024

Walkthrough

The recent changes focus on enhancing user guidance and simplifying tool installations. A new "Quick Start" guide enriches the documentation, improving user onboarding. Updates to scripts automate Go and Rollkit installations, streamlining the setup process for a smoother user experience.

Changes

File Path Change Summary
.vitepress/config.ts, index.md, tutorials/overview.md Added or updated links to the new "Quick Start" guide in the sidebar and main page.
scripts/install-go.sh, scripts/install-rollkit.sh Updated scripts to automate the installation of Go and Rollkit, improving support and cleanup.
tutorials/quick-start.md Introduced a new quick start guide explaining the setup and usage of Rollkit.

🐇💻
A hop, a skip, a code deploy,
With fresh links and scripts, oh boy!
Rollkit's easier, have no fear,
Thanks to the updates far and near.
🎉🌟


Recent Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 6419145 and 1f84702.
Files selected for processing (5)
  • .vitepress/config.ts (1 hunks)
  • index.md (1 hunks)
  • scripts/install-go.sh (1 hunks)
  • scripts/install-rollkit.sh (1 hunks)
  • tutorials/quick-start.md (1 hunks)
Files skipped from review as they are similar to previous changes (3)
  • .vitepress/config.ts
  • index.md
  • scripts/install-rollkit.sh
Additional Context Used
ShellCheck (4)
scripts/install-go.sh (4)

[info] 30-30: Double quote to prevent globbing and word splitting.


[info] 30-30: Double quote to prevent globbing and word splitting.


[info] 30-30: Double quote to prevent globbing and word splitting.


[warning] 113-113: ShellCheck can't follow non-constant source. Use a directive to specify location.

Additional comments not posted (2)
tutorials/quick-start.md (1)

27-43: The instructions and expected outputs for running the node are clear and informative.

scripts/install-go.sh (1)

7-14: The initial setup and dependency checks are implemented correctly.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@yarikbratashchuk
Copy link
Contributor Author

Will wait for Samuel to provide me with answer regarding pointing install.rollkit.dev to install-rollkit.sh script

Copy link
Contributor

github-actions bot commented May 1, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-05-02 19:12 UTC

@yarikbratashchuk yarikbratashchuk marked this pull request as ready for review May 2, 2024 08:53
@yarikbratashchuk
Copy link
Contributor Author

As rollkit is using git, we have to use git instead of downloading a release

- add script for installing Go from source, platform agnostic
- add script for installing Rollkit cli by building it from source under
  the hood
@yarikbratashchuk yarikbratashchuk requested review from MSevey and jcstein and removed request for MSevey May 2, 2024 09:15
@yarikbratashchuk
Copy link
Contributor Author

@MSevey, are you okay with using install.rollkit.dev for cli installation script?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Out of diff range and nitpick comments (1)
scripts/install-go.sh (1)

108-113: Document the limitation regarding the dynamic sourcing of shell configuration files.

Consider adding a comment in the script to inform users that changes might not take effect immediately in all scenarios due to the dynamic nature of sourcing configuration files.

Comment on lines +13 to +15
```bash
curl -s https://install.rollkit.dev | sh
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider enhancing the security of the installation command.

- curl -s https://install.rollkit.dev | sh
+ curl -s https://install.rollkit.dev -o rollkit_install.sh
+ sh rollkit_install.sh

This change allows the user to review the script before executing it, reducing the risk of executing malicious code.


Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
```bash
curl -s https://install.rollkit.dev | sh
```
```bash
curl -s https://install.rollkit.dev -o rollkit_install.sh
sh rollkit_install.sh

</details>
<!-- suggestion_end -->

<!-- This is an auto-generated comment by CodeRabbit -->


Welcome to Rollkit, a sovereign rollup framework! The easiest way to launch your sovereign rollup node is by using the Rollkit CLI.

### 📦 Install Rollkit (CLI)
Copy link
Contributor

Choose a reason for hiding this comment

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

Adjust the heading level for consistency.

- ### 📦 Install Rollkit (CLI)
+ ## 📦 Install Rollkit (CLI)

This change ensures that heading levels increment by one level at a time, maintaining a logical structure in the document.


Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
### 📦 Install Rollkit (CLI)
## 📦 Install Rollkit (CLI)

@yarikbratashchuk
Copy link
Contributor Author

closing due to fixes in the #360

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.

Create a tutorial for rollkit start make a quick start guide that uses the CLI
1 participant