# Quickstart
Set up your development environment to interact with the Nibiru EVM on the local Nibiru Chain. This guide covers installing Rust & GO, setting and running a local Nibiru network for deployment and testing.
# 1. Install Rust & Just
If you haven't installed Rust yet, you can find the installation instructions on the Rust website (opens new window) or use the recommended installation method below.
Step-by-Step Installation:
- Run the following command to install Rust:
- Install just, a command runner for Rust projects:
# 2. Install Go
Nibiru requires Go for its build processes. Follow the steps below to install Go (v1.18) for Unix-based systems like macOS, Ubuntu, or WSL. Please install Go v1.18 using the instructions at go.dev/doc/install (opens new window).
Installation Instructions for Ubuntu:
- Download and install Go:
- Set environment variables in your shell configuration or add to your
.zshrc
or.bashrc
:
# 3. Run a Local Nibiru Chain
# 3.1 Clone the Nibiru Repository
Start a local Nibiru network by cloning the NibiruChain/nibiru repository and checking out the latest stable version.
# 3.2 Nibiru Commands
Use just
to see availble commands, one of them being just localnet
. This will create a localnet for you
With the Localnet running, you can open a new terminal and can full interact with the local chain via local rpc endpoint and pre-existing accounts from the genisis.
Note: If facing dependency or library issues, remove the /temp
folder and rerun localnet.
Notice that that default port for the Ethereum JSON RPC is 8545.
# 3.3 Validate setup [optional]
Ensure setup correctness with Nibiru's EVM end-to-end tests.
- Navigate to the EVM e2e test directory and install dependencies:
- Run the tests:
# 4. Local Explorer [Optional]
After spinning up the localnet, you can spin up a local explorer in order to better view local transactions and to test your smart contract. There are several optons available online, below is outlined one of those options with their easy setup.
- Clone the repo using git
- Change your Node version to
v18
vianvm
- Install dependancies
- Serve application to default
http://localhost:8000/
NOTE: The default EVM RPC within the explorer is the same default local evm on nibiru
http://localhost:8545
and it is hardcoded underapp/app.js
.