Project

goofy

0.0
No commit activity in last 3 years
No release in over 3 years
Goofy is a microframework for web applications(heavily based on Cuba).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.0
>= 0
~> 1.6.0
>= 0
>= 0
 Project Readme

Goofy

A microframework for web development heavily based on Cuba

Goofy

Description

Goofy is a microframework for web heavily based on Cuba. Cuba is the fastest ruby microframework at the moment. Goofy is fast as Cuba but more featured and structured.

Installation

$ gem install goofy

Usage

Run:

$ goofy help

To get nessecary information.

Controllers

Goofy controllers follow SRP(Single Responsibility Principle), in other words each action maps to one controller. Goofy controllers use Prong in order to support rails-like callbacks. Every method that available in Cuba router is available in Goofy controller like res.write. Create new Goofy application and generate a controller to get to know Goofy controllers.

Services

In order to understand Goofy services, take a look at Wisper documentation, in other words Goofy uses Wisper to decouple core business logic from external concerns in Hexagonal style architectures.

Router

There is no difference between Goofy router and Cuba router expect controller method:

# app/controlers/welcome_controller.rb
class WelcomeController < ApplicationController
  def response
    res.write "Foo Bar"
  end
end
# config/router.rb
Goofy.define do
  on get, "welcome" do
    controller WelcomeController
  end
end

Test

Goofy uses Rspec as default test system.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/EhsanYousefi/closet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.