title: Storing and retrieving data for custom Shopify apps
body: <p>So I am trying to build something for my store but a few things are somewhat unclear.</p>
  <ol>
  <li><p>If I need to save some user settings do I need my own backend just
  for that app specifically? For simplicity sake, I want build an app
  to save and display a custom message in cart-template.liquid.To
  achieve that, I think my app should make a request to my backend (let
  say, on heroku) and save it in some db that app is using?</p>
  </li>
  <li><p>How do I retrieve that data in cart-template.liquid? I guess I
  build a snippet that calls a public endpoint of my backend that
  returns that saved message using fetch() or maybe axios.get and
  embed it using {% render 'fetch-custom-message-snippet' %} ?</p>
  </li>
  <li><p>Say I ask for user input, ie. &quot;Engraved message&quot; and the form is in cart-template.liquid,
  of course. The following snippet is used:</p>
  <pre><code>&lt;p class=&quot;line-item-property__field&quot;&gt;
    &lt;label for=&quot;engraved-message&quot;&gt;Engraved message&lt;/label&gt;
    &lt;input id=&quot;engraved-message&quot; type=&quot;text&quot; name=&quot;properties[Engraved message]&quot;&gt;
  &lt;/p&gt;
  </code></pre>
  <p>How do I make sure that bit of information is captured and passed to me? I guess I want to see it somewhere in the order details.</p>
  </li>
  </ol>