A lightweight Ruby web framework inspired by Sinatra, designed for educational purposes and simplicity.
| Feature | Description |
|---|---|
| π£οΈ Routing | Supports static and dynamic routes |
| π§ Controllers | BaseController structure for logic separation |
| π§Ύ Views | ERB rendering system for templates |
| β Rack Compatible | Works with rackup and middleware |
| π Testable | Designed with RSpec and modularity in mind |
mini_ruby_web/
βββ lib/
β βββ base_controller.rb
β βββ mini_ruby_web.rb
β βββ router.rb
βββ controllers/
β βββ users_controller.rb
βββ views/
β βββ user_show.erb
βββ app.rb
βββ config.ru
rackupapp.get "/merhaba" do |req, res|
res.write "Merhaba ArviS."
end
app.get "/users/:id" do |req, res|
controller = UsersController.new(req, res)
controller.show
end- Middleware support
- Sessions and cookies
- ORM integration (e.g., ActiveRecord)
- CLI tool
- RESTful routing