Skip to content

Instantly share code, notes, and snippets.

@joglr
Created July 21, 2019 19:53
Show Gist options
  • Save joglr/0f96433165bd37d3e5ae1302b1d65c2f to your computer and use it in GitHub Desktop.
Save joglr/0f96433165bd37d3e5ae1302b1d65c2f to your computer and use it in GitHub Desktop.
@echo off
echo Copy this file to any folder and run it to run a local web server in the folderza
start http://localhost:5000 && serve .
@echo off
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install nodejs-lts
npm install serve -g && echo. && start server.cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment