I've just setup a Virtual Machine that runs Ubuntu + NodeJS. I'm new to Linux and i know how to execute my code from the terminal.
node app.js
But how do i tell my server that i want to run "thisfile.js" in the background like PHP does? I know that javascript is a frontend language, that runs inside a browser. I also know that nodeJS is a Javascript environment that uses the Googles V8 Engine. But how do i tell NodeJS to not pass "thisfile.js" to the visitors browser? I'm sorry but i don't fully understand NodeJS, I'm making my first steps right now.
Installing NodeJs + Express on ubuntu + starting the localhost