Skip to content
/ diode Public

A fast, simple, pure-ruby application server.

License

Notifications You must be signed in to change notification settings

kjellhex/diode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diode

Diode

Diode lets you quickly build a fast, simple, pure-ruby application server.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'diode'

And then execute:

$ bundle

Or install it yourself as:

$ gem install diode

Usage

class Hello
  def serve(request)
    body = JSON.dump({ "message": "Hello World!" })
    Diode::Response.new(200, body)
  end
end

require 'diode/server'
routing = [
  [%r{^/}, "Hello"]
]
Diode::Server.new(3999, routing).start
# visit http://localhost:3999/

Documentation

Please see the wiki for more details.

Contributing

We welcome contributions to this project.

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create new Pull Request.

About

A fast, simple, pure-ruby application server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages