I am new to Node.js as I am trying to move the Node.js files to a server using forever.
I have created the Node.js files using npm i express-generator
so when I use nodemon it is starting like this:
node ./bin/www "app"
So, I have used forever npm
and trying to start, but I am unable to do it. How to start it and run if I move this files to a server?
My package.json file is like:
"scripts": {
"start": "node ./bin/www"
},
I think this is how you can run your application server. Use forever npm package ( https://www.npmjs.com/package/forever )
EXAMPLE