How to Build a CRUD dApp on Solana

3,177
0
Published 2024-05-02
Read the full written guide for this tutorial on how to create a CRUD app on Solana: solana.com/developers/guides/dapps/journal

DISCLAIMER
The content herein is provided for educational, informational, and entertainment purposes only, and does not constitute an offer to sell or a solicitation of an offer to buy any securities, options, futures, or other derivatives related to securities in any jurisdiction, nor should not be relied upon as advice to buy, sell or hold any of the foregoing. This content is intended to be general in nature and is not specific to you, the user or anyone else. You should not make any decision, financial, investment, trading or otherwise, based on any of the information presented without undertaking independent due diligence and consultation with a professional advisor. Solana Foundation Foundation and its agents, advisors, council members, officers and employees (the “Foundation Parties”) make no representation or warranties, expressed or implied, as to the accuracy of the information herein and expressly disclaims any and all liability that may be based on such information or any errors or omissions therein. The Foundation Parties shall have no liability whatsoever, under contract, tort, trust or otherwise, to any person arising from or related to the content or any use of the information contained herein by you or any of your representatives. All opinions expressed herein are the speakers’ own personal opinions and do not reflect the opinions of any entities.

All Comments (15)
  • @bridgetrosequinn
    this is everything i needed to get started with solana bless you
  • @PootCoinSol
    I did not know that InitSpace trick. That's nice. And thanks for explaining everything as you go. This is probably the first anchor tutorial where I learned a lot
  • @cedricchan2441
    This demo uses "anchor build" which is using anchor-cli instead of the built-in "npm anchor-build" command. If you are using anchor-cli to follow along, you should check that your anchor version is 0.29.0 (instead of latest 0.30.0) as this will cause incompatible IDLs generated by 0.30.0 - around 18:00
  • @trader751
    what will be the usecase of a solana dapp ?
  • @AlphaOnly1
    entry_id was declared but never used, probably for the sake of simplifying the program. Feels a little hacky because now we can only update messages, since updating the title would change the PDA address, also 2 separate entries with the same title from the same user will conflict no? They derive the same PDA address
  • @lardosian
    What would be the main benefit of this compared to a regular CRUD app, I'm trying to understand the web3 space!
  • @chadgtr34
    how do we retieve the signature of the journal entry ?
  • Guys, I heard that most of the transactions actually fail, is this a reliable network to host my Dapp? please advise!
  • @PootCoinSol
    You never implemented the entry_id. Also could be cool to add an upvote / downvote functionality to the message that others can vote on
  • This wasn't explained very clearly to me. Often I wonder why we are doing something.. for example, what's a Mutation?