开发者

Rails: Architecture for an app framework

For a Rails app we have a requirement, where in end users, should be able to make applications for our application. Similar to facebook app. Is there any known architecture for this, or is there any open source example which does this. Please suggest开发者_高级运维.

Regards,

Pankaj


I think you need to be a bit more clear about the sort of interaction you're expecting from the end-user apps with your app.

  • If you only need to frame their apps inside yours and pass params to them, then a simple iframe should do the trick

  • If you need the apps to have more JS functionality (make calls/pass params to your JS) then they either need to be hosted on a sub-domain of your site (e.g. x.example.com) to avoid cross-site scripting errors, or you need to provide them with a JS API (like Facebook).

  • If you need the apps to make calls to your rails app (server-side) then you need to create an API which the apps can call.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜