I'm going to do my best to phrase this as an answerable question and less as the start of a discussion.
The essence of my question is, in your experience, is it better to develop a mobile web version of your website as a separate app that uses your website as an API or to develop from within the same Rails app that serves up your website?
I'm currently planning how we're going to implement it and here are the upsides/downsides for each as I seem them.
Separate application for mobile web
- Upsides
- Performance: less overhead from existing website = better performance
- Smaller footprint: easier to organize and cleaner app to work/develop on
- De-coupled: would force us to architect services for desktop/mobile
- Downsides
- Subdomain: would have to use m.thredup.com so mobile traffic could be routed to the separate app
- Session management: would have to deal with authentication on multiple apps/domains
- Local development is harder: another service to maintain for developing locally
- Branch management: new code requires separate branches for web app + mobile app
Same application for mobile web
- Upsides
- URL Scheming: able to use same URLs for desktop + mobile (easier for sharing)
- Session management: able to use existing user sessions
- Quicker implementation: shorter project timeline as all back-end logic is already in place
- Downside
- Code bloat: more code for our already large Rails web app
If we were to develop mobile web within our existing app, here's the approach we would take for rendering mobile views - http://scottwb.com/blog/2012/02/23/a-better-way-to-add-mobile-pages-to-a-rails-site/
Any insights would be greatly appreciated.