Github Repo v1.0.0

Gemfile


The Gemfile will load a few gems to start building your static website with the rackup-framework. You can find an explanation of every gem below aswell as the resource links at the very bottom of this page.

# Ruby
source 'https://rubygems.org'
ruby '2.5.0'

# Rack 
gem 'rack'
gem 'rack-app', require: 'rack/app'
gem 'rack-app-front_end'
gem 'rack-cache'

# Web Server
gem 'puma'

# Misc
gem 'loader'

# Local Only
group :development do
  gem "rerun"
end

Ruby

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.


Ruby Gems

RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a “gem”), a tool designed to easily manage the installation of gems, and a server for distributing them.

Gem Loader is a Ruby module for automatic file require based on convention.


Puma Web Server

Puma is a small library that provides a very fast and concurrent HTTP 1.1 server for Ruby web applications. It is designed for running Rack apps only.


Rack, Rack-Apps & Rack-Cache

Rack provides a minimal, modular, and adaptable interface for developing web applications in Ruby and Rack::App is a Ruby Web Application framework and it is sadistically minimalist. This Rack::App::FrontEnd module for Rack::App to have FrontEnd framework extensions for rendering ERB files and more.

Rack::Cache is suitable as a quick drop-in component to enable HTTP caching for Rack-based applications that produce freshness (Expires, Cache-Control) and/or validation (Last-Modified, ETag) information.


Rerun Gem (local development)

Rerun launches your program, then watches the filesystem. If a relevant file changes, then it restarts your web server. You will still need to reload your web browser to see affects.

This gem is required to see any changes in the web browser, the server needs to restart, this does gem does it automatically.

$ rerun rackup --no-notify --clear --quiet

Resources