title: Database for Portfolio CMS based on Node js
body: <p>I am pretty new to Node.js, and I am stuck a bit. There is a project a portfolio CMS what popped out of my mind, and actually the simplicity of <a href="https://ghost.org/" rel="nofollow">Ghost</a></p>
  
  <p>Inspired me, that you just download and it works, but I suddenly realized at this case it might not work. Ghost uses SQlight as far as I know.</p>
  
  <p>So my question is, the platform will handle custom pages, so uses will be able to create pages like in Wordpress, will handle blog posts, image gallery and theming.</p>
  
  <p>I was thinking to use MongoDB, but I have some questions.</p>
  
  <p>So people will be available to to create image galleries and insert it to pages as short code (just telling) and my question is.</p>
  
  <ul>
  <li>Is MongoDB capable for this type of cms?</li>
  <li>Will the embedded data for the image gallery can cause problems in the future or has any limits?</li>
  </ul>
  
  <p>Image gallery example</p>
  
  <pre><code>Model.Gallery {
   id:        OjectId,
   name:      Gallery name 1,
   CreatedBy: userId,
   images: [
     {filename: 'image 1'},
     {filename: 'image 2'},
     {filename: 'image 3'},
    ]
  } 
  </code></pre>
  
  <p>Or would you recommend something else?</p>
  
  <p>Thank you</p>