{"title":"Minimal Configuration","description":"","section":"examples","version":"v1.5","path":"examples/minimal-configuration","canonical_url":"https://amberframework.org/docs/v1.5/examples/minimal-configuration","markdown_url":"https://amberframework.org/docs/v1.5/examples/minimal-configuration.md","inherited":true,"content_markdown":"# Minimal Configuration\n\nAmber can be run from a single file for minimal configuration setups if the user prefers this for smaller applications.\n\n```crystal\nrequire \"amber\"\n\nclass HelloController < Amber::Controller::Base\n  def index\n    \"hello world\"\n  end\nend\n\nAmber::Server.configure do |app|\n  pipeline :api do\n  end\n\n  routes :api do\n    get \"/\", HelloController, :index\n  end\nend\n\nAmber::Server.start\n```"}