How I can Run Multiple Node js Files ?

momo_6x

MOMO

Posted on June 6, 2020

How I can Run Multiple Node js Files ?

Hi, I am new to node.js I have question about how to run mulitple files at once.
let's say I have scripts_1.js and scripts_2.js
How can I run the both at the same time.
I know I can do this node scripts_1.js && scripts_2.js but the problem is that I need to wait for scripts_1 to finish so scripts_2.js can run.

I tried bash scripts
start.sh

start node "scripts_1.js"
start node "scripts_2.js"

but I don't like it I need a better way.
any one can help.
Thanks in advance

💖 💪 🙅 🚩
momo_6x
MOMO

Posted on June 6, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related