First of all...
create the folder for the codebase, pulled from git repo, explained in page /etc/profile
and add a file to keep the api keys and secret keys, outside the repository
then configure scripts like "deploy" and "api" to start and run automatically in /etc/crontab
To manage node processes:
ps aux | grep node
To end process: