<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>girvo</author><text>I like how react-server[0] deals with it; by having the `when` and `listen` callbacks expecting a promise, it becomes simple to `fetch()` any data you want server-side, including relative routes&lt;p&gt;[0] &lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;react-server.io&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;react-server.io&amp;#x2F;&lt;/a&gt;</text><parent_chain><item><author>idbehold</author><text>One thing that is never explained in these universal&amp;#x2F;isomorphic react frameworks&amp;#x2F;boilerplates is how to make a fetch() against your own server (e.g. a relative route). There&amp;#x27;s this &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;zeit.co&amp;#x2F;blog&amp;#x2F;next#data-fetching-is-up-to-the-developer&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;zeit.co&amp;#x2F;blog&amp;#x2F;next#data-fetching-is-up-to-the-develop...&lt;/a&gt;&lt;p&gt;But what if my component looks like this:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  import React from &amp;#x27;react&amp;#x27;
  export class exports React.Component {
    static async getInitialProps () {
      const res = await fetch(&amp;#x27;&amp;#x2F;api&amp;#x2F;user&amp;#x2F;123&amp;#x27;)
      const data = await res.json()
      return { username: data.profile.username }
    }
  }&lt;/code&gt;&lt;/pre&gt;</text></item></parent_chain></comment><story><title>Next.js – A small framework for server-rendered universal JavaScript apps</title><url>https://zeit.co/blog/next</url></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>JungleGymSam</author><text>Yes, exactly! I&amp;#x27;ve basically done only IT for the past 10 years and what little experience I have in web dev was with PHP in the good ol&amp;#x27; days.&lt;p&gt;I want to get started with vue.js but there is NO mention of how to get data from a database. It is assumed the reader knows exactly what to do.&lt;p&gt;What you described is basically how I imagined it would work but I&amp;#x27;ve just not been in this world for so long that I haven&amp;#x27;t been able to find the answer. (How to get data from a database with a system like vue.js.)</text><parent_chain><item><author>idbehold</author><text>One thing that is never explained in these universal&amp;#x2F;isomorphic react frameworks&amp;#x2F;boilerplates is how to make a fetch() against your own server (e.g. a relative route). There&amp;#x27;s this &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;zeit.co&amp;#x2F;blog&amp;#x2F;next#data-fetching-is-up-to-the-developer&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;zeit.co&amp;#x2F;blog&amp;#x2F;next#data-fetching-is-up-to-the-develop...&lt;/a&gt;&lt;p&gt;But what if my component looks like this:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  import React from &amp;#x27;react&amp;#x27;
  export class exports React.Component {
    static async getInitialProps () {
      const res = await fetch(&amp;#x27;&amp;#x2F;api&amp;#x2F;user&amp;#x2F;123&amp;#x27;)
      const data = await res.json()
      return { username: data.profile.username }
    }
  }&lt;/code&gt;&lt;/pre&gt;</text></item></parent_chain></comment><story><title>Next.js – A small framework for server-rendered universal JavaScript apps</title><url>https://zeit.co/blog/next</url></story>