Project

redwing

0.0
The project is in a healthy, maintained state
Rails inspired (web) application framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 0.16.0
~> 3.13
~> 1.86.0
~> 0.22

Runtime

~> 8.1, >= 8.1.3
~> 7.2
~> 3.2, >= 3.2.5
~> 3.0
~> 2.3, >= 2.3.1
~> 1.5
~> 1.15
 Project Readme

redwing

Sometimes, all you need is a little server. That´s redwing for you. What you make out of it, is up to you.

Quick Start

gem install redwing
redwing new my-app
cd my-app
redwing server

Then visit http://localhost:3001/.

What you get

my-app/
  Gemfile
  README.md
  app/
    views/
      home/
        index.html.erb
      layouts/
        application.html.erb
  config/
    routes.rb

Define routes

# config/routes.rb
Redwing.routes do
  get '/' do
    render 'home/index'
  end
end

HTML responses are rendered via ERB. Hash returns are auto-serialized to JSON.

API-only app

redwing new my-api --api

Skips view scaffolding. Routes return JSON:

Redwing.routes do
  get '/hello' do
    {message: 'Hello from my-api'}
  end
end

Configuration

# config/routes.rb
Redwing.configure do |config|
  config.views_root = 'app/views' # default
  config.log_file = 'log/redwing.log' # default (production)
end

Requirements

  • Ruby 3.4+