title: how/where to put models/controllers in next js app?
body: <p>learning javascript development using next.js. I have created a skeleton project, with following structure. what is the best way for development. create model, controllers? where should be the model and controller folders be? or is there a different way to do this in react world? </p>
  
  <pre><code>app
  &gt; .next
  &gt; node_modules
  &gt; pages
    &gt; api
      &gt; app.js
  &gt; public
  &gt; src
  </code></pre>