SoroPet Shop

This is a submission for the Build Better on Stellar: Smart Contract Challenge : Create a Tutorial

Your Tutorial

https://youtu.be/lG5mXJUWtiY – (Video Submission)

Code (Github)

https://github.com/Arsalaan-Alam/SoroPet-Sh…


This content originally appeared on DEV Community and was authored by Arsalaan Alam

This is a submission for the Build Better on Stellar: Smart Contract Challenge : Create a Tutorial

Image description

Your Tutorial

https://youtu.be/lG5mXJUWtiY - (Video Submission)

Code (Github)

https://github.com/Arsalaan-Alam/SoroPet-Shop

What I Created

In this tutorial, I’ve built a fully functional Pet Shop application on the Stellar blockchain using Soroban smart contracts. The Pet Shop is a familiar concept for many developers, especially those coming from Ethereum’s ecosystem, but this tutorial reimagines it on the Stellar network using Soroban, a new smart contract platform. The application allows users to adopt and disown pets, with ownership stored on the blockchain. This tutorial guides developers step-by-step on how to create, deploy, and interact with smart contracts on Stellar using Rust, providing a comprehensive introduction to building decentralized applications on Soroban.

To build this project, I used the Create Soroban Dapp boilerplate provided by Palta Labs, which made the setup process for Soroban development straightforward. The Stellar SDK and Soroban-react libraries played key roles in integrating the frontend with the smart contracts (invoking / receiving response / XDR conversion).

Journey

The journey of creating this Pet Shop tutorial for Soroban has been very exciting. My goal was to develop a comprehensive guide that helps beginners build a decentralized application (dapp) on Soroban, showcasing its capabilities in an accessible and engaging way.

Inspired by the well-known Pet Shop tutorial in the Ethereum ecosystem, I aimed to bring a similar tutorial to Soroban. The Ethereum Pet Shop tutorial is renowned for its simplicity and effectiveness in demonstrating smart contract principles, and I sought to replicate this success on Soroban. By creating a tutorial that mirrors this popular example, I hoped to provide a familiar learning experience for those transitioning from Ethereum or new to blockchain development.

The process began with setting up the environment using the Create Soroban Dapp boilerplate from Palta Labs. This boilerplate provided a solid foundation, allowing me to focus on building a tutorial that clearly demonstrates the core functionalities of a smart contract. The smart contract I wrote is relatively simple but This straightforward approach makes it easier for newcomers to grasp the fundamental concepts like storage, of Soroban and smart contract development.

Another core component that I have tried to extensively cover is the integration of smart contracts with the frontend. A lot of folks struggle with this, thus I've provided a straightforward way of invoking contracts from your frontend, receiving data, decoding it & rendering it.

Overall, the tutorial is structured to be beginner-friendly, offering clear explanations and practical examples to guide users through the process of building their own dapp. Through this project, I aimed to provide a valuable resource for those new to Soroban, helping them understand how to leverage the platform for decentralized applications. I'm proud of the final product and excited to support new developers as they embark on their journey with Soroban.


This content originally appeared on DEV Community and was authored by Arsalaan Alam


Print Share Comment Cite Upload Translate Updates
APA

Arsalaan Alam | Sciencx (2024-08-18T23:16:17+00:00) SoroPet Shop. Retrieved from https://www.scien.cx/2024/08/18/soropet-shop/

MLA
" » SoroPet Shop." Arsalaan Alam | Sciencx - Sunday August 18, 2024, https://www.scien.cx/2024/08/18/soropet-shop/
HARVARD
Arsalaan Alam | Sciencx Sunday August 18, 2024 » SoroPet Shop., viewed ,<https://www.scien.cx/2024/08/18/soropet-shop/>
VANCOUVER
Arsalaan Alam | Sciencx - » SoroPet Shop. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/18/soropet-shop/
CHICAGO
" » SoroPet Shop." Arsalaan Alam | Sciencx - Accessed . https://www.scien.cx/2024/08/18/soropet-shop/
IEEE
" » SoroPet Shop." Arsalaan Alam | Sciencx [Online]. Available: https://www.scien.cx/2024/08/18/soropet-shop/. [Accessed: ]
rf:citation
» SoroPet Shop | Arsalaan Alam | Sciencx | https://www.scien.cx/2024/08/18/soropet-shop/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.