I would like to create a small social network using Ruby on Rails 3. Since this is a complex system, what is recommended for information architecture?
I was thinking of creating several hierarchical RoR applications, each of which is used to achieve a specific goal. Therefore, I created one domain and more subdomains.
For instance:
Primary domain: http://main.com
All child subdomains: http://app1.main.com, http://app2.main.com...
The problem with using this type of architecture is user authentication, because when setting a cookie at a level http://main.com(so that all cookies are accessible from all subdomains), they do not "follow" when I try to make HTTP GET calls between subdomains if you are not explicitly passing cookie values in the HTTP GET call, possibly using an SSL / TSL connection. Is this the right approach?
However, in this case, I might think about using the REST API and OAuth protocol to protect resources ...
What is the right way to create a social network? Can someone tell me in sufficient detail?
PS: Is that right, what am I saying ?!
source
share