Writing a shell script (or something similar) that will execute some commands
Yes, this is possible. The two best options for stitching together Mac applications are AppleScript and Automator.

Given your steps, consider exploring the included Automator application: Applications > Automator.app

Apple's Mac Basics: Automator support note is a good starting point.

The following Actions are likely to help:


Display Webpages for opening your default browser and showing a URL
Run Shell Script for interacting with node.js
Open Finder Items for opening documents in Sublime Text