BBServer
A lightweight, Express-inspired HTTP server framework for Ruby, built on top of Rack.
Installation
Add this line to your application's Gemfile:
gem 'bbserver'
And then execute:
bundle install
Or install it yourself as:
gem install bbserver
Quick Start
bbserver 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.ru
Running Tests
This project uses RSpec for testing. To run the suite:
rspec
License
The gem is available as open source under the terms of the MIT License.