A lightweight, Express-inspired HTTP server framework for Ruby, built on top of Rack.
Add this line to your application's Gemfile:
gem 'bbserver'And then execute:
bundle installOr install it yourself as:
gem install bbserverbbserver is designed to be used with any Rack-compliant server like Puma.
- Create your application file (e.g.,
app.rb):
require 'bbserver'
# Currently returns a basic "Hello BBServer" response
App = BBServer::Server.new- Create a
config.rufile in the same directory:
require_relative 'app'
run App- Run your server:
rackup config.ruThis project uses RSpec for testing. To run the suite:
rspecThe gem is available as open source under the terms of the MIT License.