Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

MiniRubyWeb

A lightweight Ruby web framework inspired by Sinatra, designed for educational purposes and simplicity.


🚀 Features

FeatureDescription
🛣️ RoutingSupports static and dynamic routes
🧭 ControllersBaseController structure for logic separation
🧾 ViewsERB rendering system for templates
✅ Rack CompatibleWorks with rackup and middleware
🔍 TestableDesigned with RSpec and modularity in mind

🗂️ Project Structure

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

🔧 Usage

Start the server

rackup

Example Routes

app.get"/merhaba"do |req,res|
res.write"Merhaba ArviS."endapp.get"/users/:id"do |req,res|
controller=UsersController.new(req,res)controller.showend

📦 Future Improvements

  • Middleware support
  • Sessions and cookies
  • ORM integration (e.g., ActiveRecord)
  • CLI tool
  • RESTful routing

About

💎 A lightweight Ruby web framework inspired by Sinatra, designed for educational purposes and simplicity.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages