Skip to content

Eighteen versions of a web application and REST API, developed using Ruby on Rails, aim to fully leverage MVC/Rails by promoting modularization and orthogonality.

Notifications You must be signed in to change notification settings

solid-process/rails-way-app

 
 

Repository files navigation

MENU README | How to run locally | REST API doc | Web app screenshots

🚆 Rails Way App

Eighteen versions (gradually implemented) of a Web and REST API app made with Ruby on Rails that aims to get the most out of the MVC/Rails Way.

📚 Table of contents

💡 Summary

Branch034-resources-within-namespaces_nested-namespaces
Lines of Code1356
Rubycritic Score91.56

This version pushes the cohesion further by creating another nested namespace (User::Settings).

Before After
app/views/user ├── mailers/ ├── passwords/ ├── profiles/ ├── registrations/ ├── sessions/ ├── shared │ ├── links │ └── settings └── tokens app/controllers/user ├── passwords_controller.rb ├── profiles_controller.rb ├── registrations_controller.rb ├── sessions_controller.rb └── tokens_controller.rb
app/views/user ├── mailers/ ├── passwords/ ├── registrations/ ├── sessions/ ├── settings │ ├── profiles/ │ └── tokens/ └── shared └── links/ app/controllers/user ├── passwords_controller.rb ├── registrations_controller.rb ├── sessions_controller.rb └── settings ├── profiles_controller.rb └── tokens_controller.rb

🤔 Why is this structure more cohesive than the previous one?

Because all user settings resources are isolated in the same namespace (User::Settings), which makes it easier to maintain and understand the codebase.

🔎 What the next version will have?

Aiming to improve the expressiveness of the application, the next version will make more use of singular resources.

Next version: 035-resources-within-namespaces_singular_resources.

📣 Important info

To understand the project's context, I'd like you to please read the main branch's README.

Check out the:

  1. disclaimer to understand the project's purpose.
  2. summary of all branches.

About

Eighteen versions of a web application and REST API, developed using Ruby on Rails, aim to fully leverage MVC/Rails by promoting modularization and orthogonality.

Topics

Resources

Stars

Watchers

Forks