title: How to integrate Strapi API and Admin Panel with another node app (that consumes Strapi API)?
body: <p>I'm trying to develop an app that uses Strapi Admin Panel api generation, and, at the same time, serves as a website that consumes this api.</p>
  
  <p>So, basically, I'm trying to build a website:</p>
  
  <ul>
  <li><p>where <code>/api</code> route servers as a Strapi API endpoint</p></li>
  <li><p>where <code>/admin</code> route serves as a Strapi Admin Panel for API creation</p></li>
  <li><p>where all the other routes are configured to serve my website, i.e.:</p>
  
  <ul>
  <li><p><code>/</code> route is the landing page of my website</p></li>
  <li><p><code>/contacts</code> is the contacts page</p></li>
  <li><p>etc.</p></li>
  </ul></li>
  <li><p>And, moreover, the static files of the website (html/css/etc) should be served from the server that, respectively, consumes the generated API (server-side).</p></li>
  </ul>
  
  <hr>
  
  <p>I hope I'm not expressing myself too vaguely.</p>
  
  <p>Essentially, I need to integrate one node.js app (my website) with another node.js app (Strapi) in such a way that they work seamlessly together <strong><em>as one</em></strong>.</p>
  
  <hr>
  
  <p>Does anybody know how to achieve that?</p>
  
  <hr>
  
  <p>I've read some answers here on Stackoverflow and on Strapi GitHub issues, and some people said that the way to achieve that is to run two separate apps on different ports, but it doesn't feel right to me (or maybe I just don't understand some basic stuff).</p>
  
  <p>What I need is to make a single app that is, basically, a simple multi-page website, but enhanced with api generation tools from Strapi.</p>
  
  <hr>
  
  <p>I have my Strapi app up and running and I thought maybe I should find some place in the app folder structure to put my website (i.e. all the static stuff to the <code>public</code> folder), but where to put the server-side stuff?</p>
  
  <p>And I'll need to use a templating engine, so the question of "where to put the client-side files" arises again. The more I dig into the code, the more I get confused.</p>
  
  <hr>
  
  <p>PS: I'm fine using Koa which is used as a server for Strapi.</p>
  
  <p>PPS: Further, I'm planning to deploy the app to Heroku on a single Dyno (if it is important).</p>