I am using p5js and ml5js to run a local project that tracks a person and saves images to a local folder.
For this to work I have to use https://github.com/ml5js/ml5-data-and-models-server to serve the ml models locally and start an express server to allow for file down and upload.
Currently I manually start both in the terminal
cd ml5-data-and-models-server npm run serve
npm start server.js in the folder that has my server.js file.
I am hoping to find a way to automatically start both. But simply starting them via the same shell script does not work since the first server blocks the rest of the script to be run.
I tried these 4 solutions but was not able to make them work, probably due to missing knowledge.
Does anyone have any advice?
Thanks a bunch.