Skip to content

soonlabs/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello Word on SOON

This is a simple example of how to use the SOON Network to deploy a simple "Hello World" application.

Prerequisites

You will need the Devnet SOL to deploy the program, you can use our Bridge to get the Devnet SOL

https://bridge.devnet.soo.network/home

Also if you dont't have Sepolia ETH you can use the faucet

https://faucet.soo.network/

Installation

  1. Clone the repository
git clone https://github.com/soonlabs/hello-world
cd hello-world/example-hello-world
  1. Install the dependencies and build the project
cd src/program-rust
cargo build-sbf
  1. set-up the RPC URL for SOON Network
solana config set --url https://rpc.devnet.soo.network/rpc
  1. Deploy the program to the SOON Network
solana program deploy ./target/deploy/helloworld.so
  1. Once you have a deployed program, you can start interacting with it using the frontend, just cd to root directory and run the following commands:
cd front-end
pnpm i
pnpm dev
  1. Open your browser and navigate to http://localhost:3000/

  2. To run the backend, you can add your private-key and run the following commands:

cd back-end
pnpm i
pnpm start

Note: You need to change the programId in the frontend/src/components/hero.tsx file to the programId of the deployed program.

Acknowledgments

This project is based on the Solana Hello World example, and we would like to credit the Solana Labs team for providing the foundation for this implementation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published