You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cortex R&D Inc. edited this page Dec 30, 2025
·
1 revision
Local Development Server Setup - macOS
Requirements
Node.js installed (check with: node -v in Terminal)
Initial Setup
Download initLocalMode.js to your code folder and run: node initLocalMode.js
This creates the folder structure and downloads required files automatically.
Create the startup script
In /code/Lib/KTL/ create FileServer.sh with this content:
#!/bin/bash
node ./NodeJS/NodeJS_FileServer.js
Then make it executable: chmod +x FileServer.sh
Create desktop launcher
Open Automator, choose New Application, add "Run Shell Script" and paste:
cd /Users/yourname/code/Lib/KTL
./FileServer.sh
Save to Desktop.
Your app files
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.
Using it
Double-click desktop icon to start server.
Edit files, save, refresh browser to see changes.
Copy back to Builder when ready for production.