You want to run a simple local HTTP Server on your local PC. You want to test your html, js,… files locally.
Here is the easiest way to do it.
1. Using SimpleHTTPServer Create your test folder, move all your html, js files to that folder.
$ mkdir test $ cd test Check your python version
$ python --version If you have Python version 2, run SimpleHTTPServer using
$ python -m SimpleHTTPServer 1313 If you have Python version 3, using
1. Why choosing Jekyll? Free, open souce Easy to install and use Many free themes. 2. Install Jekyll Install the command-line tools to be able to compile native extensions:
$ xcode-select --install Install Ruby via Homebrew:
$ brew install ruby Add Ruby path to your shell config. Replace ~/.zshrc with ~/.bashrc if you are using bash.
$ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc Relaunch your terminal and check your updated Ruby setup.
Using Homebrew
will save you lot of times in setting up and configuring the development environment on macOS.
If you don’t have it in your Mac, try installing using the guideline here.