✨ It's really not a secret, the Website is mostly written with GPT ✨
Run this command to install the Github repo, it's needed for the rest of the instructions.
git clone 'https://github.com/localscripts/localscripts.github.io.git' && cd localscripts.github.io'
There are two free static hosting providers that are the best:
The instructions for both options are well documented and would add too much bloat if added here. Instructions for Netlify, and instructions for Github Pages.
If you want to see the website but not host it, follow the quick and dirty instructions. If you want to host the server in a public context, follow the slow and robust instructions (not recommended when hosted on a personal device).
Install the extension Live Preview
(The publisher should be microsoft.com
). If you can't find it using the extension explorer in VSCode, you can manually install it by going to this site.
Open the github repo in VSCode, right click index.html
and select Show Preview
. This will open a tab in VSCode. If you want to see the website in your browser, the just copy the URL in the VSCode tab and enter it in your preferred browser.
Install Python (if not already installed)
Install NPM (using WinGet)
npm
winget install -e --id OpenJS.NodeJS
Open the Folder in Visual Studio Code
Open a Terminal in Visual Studio Code
Ctrl+Shift+~
to open a new terminal window in Visual Studio Code.Install http-server
Globally
http-server
:
npm install -g http-server
Start a Python HTTP Server
python -m http.server
Find Your Local IP Address
Windows+R
, type cmd
, and hit Enter
to open Command Prompt.ipconfig
and locate your IPv4 Address.Access Your Project in a Browser
<IP>:<Port>
. For example, if your IP address is 192.168.1.10
and the port is 8000
, enter http://192.168.1.10:8000
. If you don't know your current local IP address, you can get it using this Powershell line:
Get-NetIPAddress | Where-Object {$_.AddressFamily -eq 'IPv4' -and $_.InterfaceAlias -ne 'Loopback Pseudo-Interface 1'} | Select-Object IPAddress
This will give several IP addresses, pick the first one that starts with 192
. The others are either APIPA addresses, loopback addresses, or explicitly set on your machine.
[!WARNING] Using this method will run the server on your computer and should only be used for debugging. This means anyone who navigates to it is connecting directly to the hosting device. This can be a significant security issue if you don't know what you're doing, so limit access to this website to your local network when hosting on a personal computer. If you want to host a public website, refer to the public server instructions.