title: How to properly deploy a ReactJS frontend with a NodeJS backend on firebase
body: <p>To learn ReactJS and Firebase, I had create a web app with these technologies.</p>
  
  <p>But I didn't publish this app on the web because, since react is a frontend library, we can see the code with my firebase infos.</p>
  
  <p>Now I have learned NodeJS and I want to implement that on my app for the backend and publish on firebase but I don't know how publish an app with both React <em>and</em> Nodejs on firebase.</p>
  
  <p>The only idea I have is to run the <code>npm build</code> command, put the content of the <code>build</code> folder in a <code>view</code> folder of my Nodejs project, and redirect the home page to my React index like that:</p>
  
  <pre><code>app.get('/', (req, res) =&gt; {
    res.render('view/index');
  });
  </code></pre>
  
  <p>and publish on firebase like a nodeJS project.</p>
  
  <p>I think this is a good solution but I want to be sure and know if a better solution exist because I want to use the best practices, and move the build content after each frontend update... (and I don't want to restart all my backend if I don't know how publish after)</p>