With this node package you can create a live server by just right clicking
Assuming you alread have node installed; You need to install live-server package globally
npm install -g live-server
- Launch automator
- Pick
Quick Action - Options
- Workflow receives current:
folder - in:
Finder - Image:
Globeor something else. (optional)
- Workflow receives current:
- Find
Run Apple Scriptfrom sidebar and add it. - Type this;
on run {input, parameters}
set folderPath to (the POSIX path of input)
tell application "Terminal"
do script ("live-server --port=5010 "& folderPath as string)
activate
end tell
return input
end runSave it as "Live Server"
It should appear in the services menu at the bottom of the finder.

Done.