How can I use NodeJS for front-end in large Python application?
<p>I am currently writing the front-end for a large python application and have realized that I would benefit a lot from various Node packages (I am currently trying to make it into a single page ReactJS application).</p>

<p>From my understanding though, in most tutorials, Node seems to be used for the entire application. In my case I just want the front-end. So my question is how can I do that? Do I simply do an npm init in the folder where my front-end JS files are and install whatever packages I need? If not, how do I do this? Is this even an appropriate use of Node?</p>

<p>Thanks</p>

<p>Node.js doesn't run on the frontend but on the <strong>backend</strong> - you can use Node <strong>instead</strong> of Python.</p>

<p>You can use Node to prepare/compile/build/minify your frontend code.</p>

<p>You can use <code>npm</code> <strong>modules</strong> on the frontend - see <a href="http://browserify.org/" rel="nofollow">Browserify</a>.</p>

<p>But you will not be able to <strong>run Node on the frontend</strong> - unless you want something like <a href="https://repl.it/languages/nodejs" rel="nofollow">repl.it</a>.</p>

python node.js npm node-modules