Skip to content

A messaging app built on top of Solana blockchain where you can store and view your messages.

Notifications You must be signed in to change notification settings

RiteshPuvvada/Simple-message-app-on-solana

Repository files navigation

Message App on Solana 💬

This Message application written Rust using Anchor ⚓

Setting up the Environment:

  • Rust Installation
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup component add rustfmt
  • Solana Installation
sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)"

Please update your PATH environment variable to include the solana programs

  • Installation of mocha
npm install -g mocha
npm i -g @project-serum/anchor-cli
  • And we can use Cargo to install CLI
cargo install --git https://github.com/project-serum/anchor --tag v0.17.0 anchor-cli --locked

Configurations on Solana CLI

solana config get

Configure RPC URL

solana config set --url localhost

Wallet address and airdrop some SOL

solana address
  • For more comprehensive details of your account
solana account <your address from the last command>

Getting Started

  • Clone this repository
git clone https://github.com/RiteshPuvvada/Simple-message-app-on-solana.git

cd Simple-message-app-on-solana
  • Compile this project
anchor build
  • Run tests
anchor test