Hello friends of the community.
I have a project made node.js in react and express and I want to deploy it in a virtual machine with ubuntu 16.04 creating a service that runs npm start .
On my pc I run the project with npm start which in turn executes babel-node / bin / www . / bin / www is the project's start script. I execute it on the server in the same way.
The issue is: how can I create a service that runs npm start when the machine starts in the project directory and keeps it active without the need to start it myself.
Thanks