In this tutorial, we will take an existing Solana dApp and deploy it to the Sonic Testnet. Specifically, we’ll use the SVM-Greet Solana program and the SVM-Greeting dApp as examples. This guide is intended for those who already know how to build a Solana dApp and describes the core modifications needed when deploying a Solana dApp to the Sonic SVM Testnet RPC.

You can also take a look at the SVM-greeting deployed frontend.

At a high level, developers should take the following steps:

  1. Get an overview of solana dApp
  2. Set up developer environment
  3. Acquire Sonic Testnet tokens
  4. Deploy the solana program with the Sonic Testnet RPC
  5. Modify frontend
  6. Test and deploy

Overview of solana dApp

dapp.jpeg

Solana DApp can be built using various tech stacks and environments, depending on the developer’s requirements. However, every Solana DApp follows a fundamental architecture composed of several layers, each serving a distinct purpose.

This diagram represents the essential layers that define the architecture of a Solana DApp.

Let’s dive into each layer and explore its purpose.