Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to consolidate multiple rails application and share ressources

I have thi intranet I developped back then with PHP.

I handles multiple apps and tools (blog, link sharing, file sharing, events, clendar...), and a big user autenthication system for logging in and authorisation management.

I'd like to start re-building it with Rails.
I don't want to build one big app.
I'd like to build the site as multiple smaller apps, sharing a few common ressources like the user administration system, templates, layouts and navigation...

Rails Engine provide a way to embed an app into another.
I guess I could have a "main" app, embedding all other apps. But I don't feel it's the right way (I may be wrong) if I have 10-15 different apps.

How would you do it ?

Thanks.

like image 631
ralovely Avatar asked Nov 06 '22 21:11

ralovely


1 Answers

We've created applications that are split into 2 - the user facing site and an admin site. We just made 2 separate sites that have the same db and models and their own views and controllers.

This works pretty well and gives us the freedom to treat each site differently in terms of security and deployment.

I don't have any experience in going farther than that.

like image 104
Brian Avatar answered Nov 12 '22 13:11

Brian