Prerequisites Before you can use Jekyll to test a site, you must:
Install Jekyll. Create a Jekyll site. For more information, see "Creating a GitHub Pages site with Jekyll." We recommend using Bundler to install and run Jekyll. Bundler manages Ruby gem dependencies, reduces Jekyll build errors, and prevents environment-related bugs. To install Bundler:
Install Ruby. For more information, see "Installing Ruby" in the Ruby documentation. Install Bundler. For more information, see "Bundler."
Run bundle install
bundle exec jekyll serve
To preview your site, in your web browser, navigate to http://localhost:4000