Allows the user to create a Group, send, view and delete messages in any group.
Currently supports only Phantom Wallet
Deployed on Devnet => https://solana-whatsapp.netlify.app
-
On LocalHost
- First, Make Sure you have Rust, anchor-cli, solana and yarn installed
- Run
solana config set --url localhost
to shift to work on localhost - Make Sure you have a local keypair by running
solana address
in a terminal. If not then runsolana-keygen new
and follow the steps. - Clone the repo and run
yarn
in the root directory as well as in app directory. - Now build the program by running
anchor build
in a terminal. - Start the local ledger by running
solana-test-validator
and deploy the program by runninganchor deploy
in another terminal. - Run
solana address -k target/deploy/clone_whatsapp-keypair.json
to generate your program_id. - Open Anchor.toml in the root directory and replace the address occurences in
program.localnet
andprogram.devnet
fields with the address generated in the previous command - Open programs/clone-whatsapp/src/lib and replace the address in
declare_id
macro as well with your program_id. - Run
anchor build
andanchor deploy
once more. - Make sure you have Phantom wallet installed and running on localhost.
- In the root directory run
anchor run copy-idl
. - Start your local ledger by running
anchor localnet
- AirDrop some SOL to your phantom wallet by running
solana airdrop 100 <YOUR-PHANTOM-WALLET-ADDRESS>
. cd
to the app subdirectory and runyarn serve
.
- On DevNet
- Run
solana config set --url devnet
to shift to work on devnet. - In the root directory run
anchor run copy-idl
. - Run
solana airdrop 2
to fund your local wallet to deploy the program. Run the command once more if more funds are required to deploy the program. - Fund your phantom wallet by running
solana airdrop 2 <YOUR-PHANTOM-WALLET-ADDRESS>
. cd
to the app subdirectory and runyarn serve:devnet
.
- Run
The avatars were taken from the DiceBear api =>