title: Web API and web application in one project vs separate projects
body: <p>I am completely new to the concept of servers, web APIs and web applications. I have a project where I need to design a Web API that allows clients to modify a database (hidden from the clients through the API). </p>
  
  <p>And there is also a web application which has some functionalities. The web application also has to interact with the database. </p>
  
  <p>So my question is, should I develop the Web API (Server) and the web application in the same project or two different projects? </p>
  
  <p>I chose to implement the system using Mean stack for learning purposes. Mean stands for MongoDB, ExpressJS, Angular and NodeJS. As the Mean stack contains technologies to develop both the API and the Web app, am I supposed to develop all the code within one project and deploy it in my server or separate the Web API and the web application into two projects? </p>
  
  <p>If it depends on the scenario, then to which kind of scenarios should I choose each and what are their pros and cons? </p>