-
-
Notifications
You must be signed in to change notification settings - Fork 8
Local Mode for macOS
Cortex R&D Inc. edited this page Dec 30, 2025
·
1 revision
Node.js installed (check with: node -v in Terminal)
Download initLocalMode.js to your code folder and run: node initLocalMode.js
This creates the folder structure and downloads required files automatically.
In /code/Lib/KTL/ create FileServer.sh with this content:
#!/bin/bash
node ./NodeJS/NodeJS_FileServer.jsThen make it executable: chmod +x FileServer.sh
Open Automator, choose New Application, add "Run Shell Script" and paste:
cd /Users/yourname/code/Lib/KTL
./FileServer.shSave to Desktop.
Place in /code/KnackApps/YourAppName/ folder with files:
YourAppName.js
YourAppName.css
Folder and file names must match your Builder App Name.
Don't include the loader code in the .js file.
Double-click desktop icon to start server.
Edit files, save, refresh browser to see changes.
Copy back to Builder when ready for production.