<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Carron White</title>
    <description>The latest articles on Forem by Carron White (@bcrebel).</description>
    <link>https://forem.com/bcrebel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1462050%2Fe2bca5fa-e077-4850-ac81-a47257a54536.jpeg</url>
      <title>Forem: Carron White</title>
      <link>https://forem.com/bcrebel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/bcrebel"/>
    <language>en</language>
    <item>
      <title>Beauty on the Blockchain</title>
      <dc:creator>Carron White</dc:creator>
      <pubDate>Mon, 19 Aug 2024 05:49:30 +0000</pubDate>
      <link>https://forem.com/bcrebel/beauty-on-the-blockchain-348c</link>
      <guid>https://forem.com/bcrebel/beauty-on-the-blockchain-348c</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/stellar"&gt;Build Better on Stellar: Smart Contract Challenge &lt;/a&gt;: Build a dApp&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;It's been almost ten years since some friends and I proposed a crazy idea about building "PrettyTendr", a beauty loyalty program on a blockchain. At the time we were intrigued by the possibility of rewarding tokens in exchange for knowledge sharing around products and community engagement. I was also a self-taught junior developer at the time and building an MVP for a concept so complex felt entirely out of reach. Imagine how thrilled I was to see this challenge and learn about the Soroban platform.&lt;/p&gt;

&lt;p&gt;I set out to demonstrate the basic functionality of the dApp by implementing a smart contract that rewards users for completing a profile, one of the many engagement and personalization possibilities for the program. The dApp also sends the user a custom asset called PT in exchange for engagement. PT is intended to be eventually exchanged for product samples, access to exclusive events and more. &lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Live: &lt;a href="https://bcrebel.github.io/prettytendr/" rel="noopener noreferrer"&gt;https://bcrebel.github.io/prettytendr/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://player.vimeo.com/video/1000868090" width="710" height="399"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmv95lgm9xjrcw5t0cr0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmv95lgm9xjrcw5t0cr0.png" alt="Engagement Options" width="800" height="559"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0buwtmtrgykco2dmdqcm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0buwtmtrgykco2dmdqcm.png" alt="Smart Contract Execution" width="800" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Code
&lt;/h2&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/bcrebel/prettytendr" rel="noopener noreferrer"&gt;https://github.com/bcrebel/prettytendr&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;As a front-end dev that codes exclusively in JavaScript I was definitely intimidated by Rust. I decided to start with the Stellar &lt;a href="https://developers.stellar.org/docs/build/smart-contracts" rel="noopener noreferrer"&gt;Smart Contract Tutorial&lt;/a&gt; project, which was a great introduction to a complex topic. In addition to broadening by backend programming knowledge, I also learned about new front end tooling through their example project. I never worked with Astro before and it was a great opportunity to experiment with the partial application of React and to think critically about the specific interactivity and performance requirements on each app page. I was also impressed with the built in Accessibility audit. TailwindCSS compatibility was a plus because I can't do rapid prototyping without it. One thing to note though is that Astro is incompatible with React Context, and I found that out the hard way. I was so excited when I found the soroban-react package and then totally bummed when I realized that it relied on Context! &lt;/p&gt;

&lt;p&gt;The Stellar Discord channel was my favorite resource for researching obscure contract and transaction related errors. I was also blown away by the visualizations in &lt;a href="https://stellar.expert" rel="noopener noreferrer"&gt;https://stellar.expert&lt;/a&gt;. I plan on iterating on my MVP dApp, continuing to learn Rust fundamentals, and practicing with Smart Contracts until they feel like second nature. I also plan to brainstorm ways to improve the user experience for those who are unfamiliar with dApps.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>stellarchallenge</category>
      <category>blockchain</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
