Use classic batch file to start multiple applications

1

Here is a short batch script that starts a whole application stack including MongoDB server, two NodeJS applications and opens up a browser with the start url of the application.

start "MongoDB" "C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --dbpath c:\data\db\mongodb
start "NodeJS-API" /D "c:\nodejs-api" nodemon.cmd c:\nodejs-api\index.js
start "NodeJS-WEBAPP" /D "c:\nodejs-webapp" nodemon.cmd c:\nodejs-webapp\index.js

start firefox http://localhost:3001

Share.

About Author

Christian Unnerstall

Christian Unnerstall, founder of devshooin.com, enjoys designing and building things that look nice and work well, whether it's websites or services within the interwebs. Have questions - feel free to reach out to him. Enjoy

1 Comment

Leave a Reply