Hello
Using both & and && doesn't really make sense. The && means only start the second command if the first doesn't fail. And & means run the first command in the background - execute the second without waiting for the first command to finish. If the second should start anyway, you could do something like this:
Code:
(node app.js &) ; curl localhost
If the second command fails because app.js hasn't started yet, you could maybe add some sleep so it has time to start?
Code:
(node app.js &) ; sleep 3 ; curl localhost