/rails-lite

creating my own basic version of ruby on rails

Primary LanguageRuby

rails-lite

In this project, I implement some of the basic functionality of Rails.

Learning goals

  • Know how the basics of the HTTP request-response cycle works
  • Know how a server works at a basic level
  • Be able to explain the functionality of the ControllerBase class
  • Know how cookies are used by browsers and servers
  • Be able to write a router that parses a URL and instantiates the appropriate controller
  • Know how params get built out of the HTTP request's information

Phases

  1. Rack Middleware
  2. ControllerBase Class
  3. Adding template rendering
  4. Adding the session
  5. Routing
  6. Integration, ActiveRecord Lite
  7. Flash
  8. Rack Middleware - Exceptions
  9. Rack Middleware - Static Assets
  10. CSRF Protection