Yes, this is good - if you want to keep a separate live and test/dev Node-RED setup. That's how I work. My test/dev instance is on my desktop, the live on my home server.
As I also use my alternate installer, I can also easily create new, clean installs of Node-RED even with different versions running in parallel. No impact on my live server.
Good grief - manual?! This IS the 21st C after all. No, my dev/test main instance runs under PM2 and I have its watch function watching files/folders that need to restart node-red.
Manual start and restart (when needed) as well as showing logs is done via npm scripts so I don't have to remember pm2 commands.
The location of files in Windows can be even more arcane than Linux these days. So personally, ALL my source code & dev stuff sits under a single root folder d:\src
.
... back in a sec ... and back ...
So my node-red install folders go in there with their data as a sub-folder.
This makes it much easier to find stuff.
Nodes that I'm working on are cloned from GitHub and installed to the node-red instance using npm install d:\src\node-red-node-uibuilder
or whatever. You have to remember to do an npm isntall
within the node's root folder though otherwise things get a bit weird.
For VSCode edits, each root folder has its own workspace file (open the folder in VSCode then save the workspace - I save the workspace to the same folder but exclude the workspace file from git. I also use the Project Dashboard extension which gives me a quick access page with all of my local and remote workspaces to hand.
I really will get round to doing a write-up of VScode extensions - really I will - one day!
I think I've mentioned most previously. But here are the main ones:
- Better Comments
- Bookmarks
- Code Spell Checker
- ESLint
- Explicit Folding
- GitLens
- HTML CSS Support
- HTMLHint
- Insert Date String
- IntelliCode
- IntelliSense for CSS class names in HTML
- Markdown All in One
- npm intellisense
- Project Dashboard
- Remote - SSH
- Remote Explorer
- Snippets Ranger
- vscode-faker (for quickly creating fake test data)
For yourself, you might also want "Vue - Official". There are also vuetify extensions.
Of course, you should also set up certificate-based SSH logins and config so that VSCode remote can easily get to your remote devices as well.
VSCode has rather a lot of extensions but I try to install new ones and immediate disable then only enable them in each workspace as needed.
Oh, and I keep a Windows Terminal shortcut set up to kick off Node-RED under PM2, that is pinned to my taskbar for ease of access.