Sha256: 7bca37f97e1f57918fc3f54e07be682d3d228728d2c38e8f7a2513aaa016df3b

Contents?: true

Size: 524 Bytes

Versions: 21

Compression:

Stored size: 524 Bytes

Contents

# Getting Started

## Hello Midori

midori is a [DSL](https://en.wikipedia.org/wiki/Domain-specific_language) for web and API development in Ruby  with minimal effort:

```ruby
# hello_midori.rb
require 'midori'

class HelloWorldAPI < Midori::API
  get '/' do
    'Ohayou Midori'
  end
end

Midori::Runner.new(HelloWorldAPI).start
```

Run with

```
$ ruby hello_midori.rb
```

View at: http://127.0.0.1:8080 with your browser, if you see a page showing: **Ohayou Midori**. You've made your first application with midori.

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
midori.rb-0.5.0 tutorial/essentials/getting_started.md
midori.rb-0.4.4.1 tutorial/essentials/getting_started.md
midori.rb-0.4.4 tutorial/essentials/getting_started.md
midori.rb-0.4.3 tutorial/essentials/getting_started.md
em-midori-0.4.3 tutorial/essentials/getting_started.md
em-midori-0.4.2.1 tutorial/essentials/getting_started.md
em-midori-0.4.2 tutorial/essentials/getting_started.md
em-midori-0.4.1.1 tutorial/essentials/getting_started.md
em-midori-0.4.1 tutorial/essentials/getting_started.md
em-midori-0.4.0 tutorial/essentials/getting_started.md
em-midori-0.3.0 tutorial/essentials/getting_started.md
em-midori-0.2.4 tutorial/essentials/getting_started.md
em-midori-0.2.3 tutorial/essentials/getting_started.md
em-midori-0.2.2 tutorial/essentials/getting_started.md
em-midori-0.2.1 tutorial/essentials/getting_started.md
em-midori-0.2.0 tutorial/essentials/getting_started.md
em-midori-0.1.12 tutorial/essentials/getting_started.md
em-midori-0.1.11 tutorial/essentials/getting_started.md
em-midori-0.1.10 tutorial/essentials/getting_started.md
em-midori-0.1.9 tutorial/essentials/getting_started.md