-
Notifications
You must be signed in to change notification settings - Fork 1
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
[UX/UI] As a User, I want to have a easy to ready and follow docs, so I can run Mina Node/Demos effortlessly #92
Comments
The OpenMina NodeThe OpenMina Node is a Mina node written entirely in Rust, capable of verifying blocks of transactions, producing blocks and generating SNARKs. Unlike the resource-limited Mina Web Node, OpenMina handles resource-intensive tasks like SNARK proof generation.
Table of Contents
Block Producer DemoThis demo runs in a private network with block proofs disabled, eliminating the need to wait for staking ledger inclusion. Quick-start a Node with Docker Compose1. Run:
2. Visit http://localhost:8070 in your browser.
Building a Node from SourceThis installation guide has been tested on Debian and Ubuntu and should work on most distributions of Linux. 1. Install node pre-requisites:Ubuntu or Debian-based Linux distribution with the following packages installed:
MacOSIf Homebrew is not installed: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install curl git openssl pkg-config protobuf gcc make Linux (Debian-based)# Either using "sudo" or as the "root" user
sudo apt install curl git libssl-dev pkg-config protobuf-compiler build-essential 2. Build and Run the Node:Steps (for Debian-based Linux distros and macOS): Open up the command line and enter the following: # Install rustup and set the default Rust toolchain to 1.77 (newer versions work too)
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.77
# Setup the current shell with rustup
source "$HOME/.cargo/env"
# Clone the openmina repository
git clone https://github.com/openmina/openmina.git
cd openmina/
# Build and run the node
cargo run --release -p cli node 3. Install Dashboard pre-requisites:3A. Node.js v20.11.1MacOS/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install [email protected] Linux (Debian-based)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm install 20.11.1 WindowsDownload Node.js v20.11.1 from the official website, open the installer and follow the prompts to complete the installation. 3B. Angular CLI v16.2.0npm install -g @angular/[email protected] 4. Build and Run Dashboard Application4A. Open a terminal and navigate to this project's root directory:cd PROJECT_LOCATION/openmina/frontend 4B. Install the dependencies:npm install 4C. Run the application:npm start Repository Structure
Details regarding architecture The Open Mina Documentation
Block Producer DemoThis demo runs in a private network with block proofs disabled, eliminating the need to wait for staking ledger inclusion. Quick-start a Node with Docker Compose1. Run:
2. Visit http://localhost:8070 in your browser.
Building a Node from SourceThis installation guide has been tested on Debian and Ubuntu and should work on most distributions of Linux. 1. Install node pre-requisites:Ubuntu or Debian-based Linux distribution with the following packages installed:
MacOSIf Homebrew is not installed: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install curl git openssl pkg-config protobuf gcc make Linux (Debian-based)# Either using "sudo" or as the "root" user
sudo apt install curl git libssl-dev pkg-config protobuf-compiler build-essential 2. Build and Run the Node:Steps (for Debian-based Linux distros and macOS): Open up the command line and enter the following: # Install rustup and set the default Rust toolchain to 1.77 (newer versions work too)
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.77
# Setup the current shell with rustup
source "$HOME/.cargo/env"
# Clone the openmina repository
git clone https://github.com/openmina/openmina.git
cd openmina/
# Build and run the node
cargo run --release -p cli node 3. Install Dashboard pre-requisites:3A. Node.js v20.11.1MacOS/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install [email protected] Linux (Debian-based)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm install 20.11.1 WindowsDownload Node.js v20.11.1 from the official website, open the installer and follow the prompts to complete the installation. 3B. Angular CLI v16.2.0npm install -g @angular/[email protected] 4. Build and Run Dashboard Application4A. Open a terminal and navigate to this project's root directory:cd PROJECT_LOCATION/openmina/frontend 4B. Install the dependencies:npm install 4C. Run the application:npm start Repository Structure
Details regarding architecture The Open Mina Documentation
Producer Demo Launch Guide with DockerThis demo showcases the block production capabilities of OpenMina nodes within a private network. It launches three OpenMina nodes on your local machine, operating in a private network environment. For the purpose of this demonstration, block proofs are disabled. This setup allows you to observe block production immediately, without the need to wait for your account to be included in the staking ledger on testnets. Table of ContentsPrerequisite - Docker InstallationmacOS
Linux (Debian-based)
Windows
Running the Producer DemomacOS
Linux (Debian-based)
Windows
|
WHAT
Readme docs and Producer Demo docs
WHY
I went through these docs a few times as a user, and had some ideas to improve structure so it prioritizes macOS and it is easier to follow
HOW
First, I condensed the start and added TOC, TOC is a nice touch to showcase what is actually inside and we have two slightly distinct categories: (1)Trying stuff, (2)Exploring and Understanding Code
Second, I added some context to block producer section, so it is more obvious what to expect in the detailed guide
Third, I restructured and Renamed Titles around building a node, I wanted headlines to be as informative as it gets - So I replaced generic how to launch with/without docker compose with more specific titles
The text was updated successfully, but these errors were encountered: