> For the complete documentation index, see [llms.txt](https://mazeframework.gitbook.io/maze/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mazeframework.gitbook.io/maze/examples/minimal-configuration.md).

# Minimal Configuration

Maze can be run from a single file for minimal configuration setups if the user prefers this for smaller applications.

```ruby
require "maze"

class HelloController < Maze::Controller::Base
  def index
    "hello world"
  end
end

Maze::Server.configure do |app|
  pipeline :api do
  end

  routes :api do
    get "/", HelloController, :index
  end
end

Maze::Server.start
```
