Website running off iPhone app's backend?

JMorton6

Senior member
Jan 25, 2009
406
1
71
Well, so to speak. What I mean is that I wanna have an iPhone app (social networking category), so I need to get the app itself and the back-end done, but if I want a website too to work off the same script / database, can I just hook that up to the app's back-end so to speak? I'm just trying to figure this out and break the project down into a few milestones. My end goal as I mentioned is an app and website that work together seamlessly. Could someone break down the steps for me please? Thank you!
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
Create your back end as an API that you can use from both your iPhone app and your web front end.



You're going to do most of your heavy lifting on your back end server. The iPhone app and front-end server should have minimal logic them. The front end should mostly be:
1) Handling user input (validation, etc)
2) Sending the input to the back-end server so it can do the actual work
3) Presentation (HTML/JS/CSS or iPhone GUI). Taking the data response from the back-end and presenting it to the user.

You're going to need to create service calls on your back-end server for your iPhone app. As you're designing your back-end service calls, be careful to make them structured enough that another front-end can take advantage of them. In theory, you could have any number of front-ends using the same back-end.
 
Last edited:

JMorton6

Senior member
Jan 25, 2009
406
1
71
Create your back end as an API that you can use from both your iPhone app and your web front end.



You're going to do most of your heavy lifting on your back end server. The iPhone app and front-end server should have minimal logic them. The front end should mostly be:
1) Handling user input (validation, etc)
2) Sending the input to the back-end server so it can do the actual work
3) Presentation (HTML/JS/CSS or iPhone GUI). Taking the data response from the back-end and presenting it to the user.

You're going to need to create service calls on your back-end server for your iPhone app. As you're designing your back-end service calls, be careful to make them structured enough that another front-end can take advantage of them. In theory, you could have any number of front-ends using the same back-end.

So should I get a mobile app dev to do the API as well as the app, and then get someone else to do the web front-end? Or should the dev doing the web front-end also do the API, so that all the mobile app dev does is create the mobile app?

Also, when you're referring to different servers... I actually plan to use a cloud host, so it would be the same server for everything, right?

Thanks again for your help (and great diagram btw).
 

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
Leros has it right. I'll try to add something new.

All of your user data is ultimately going to live in a database (ex. SQL Server).

For the mobile app, your best bet is to write web services (ex. SOAP or WCF) that talk to the SQL Server - this abstracts all of your data manipulation into the "cloud" (meaning server based instead of client based). You could even have the mobile app interface generated on the server side and passed to the client (ex. using XSLT), so that you can actually update the look and feel without pushing an update to the client.

For the web site, if your front end is going to be your app/web service server (or they're in the same server farm), you might want to bypass the web services (to save on inherit latency of web service connections vs. direct code calls). You could write your general data manipulation API and just encapsulate them in web services (for your mobile app), leaving the API available for your web site.

I'd recommend finding someone who can do this all for you, instead of trying to farm out separate pieces. As a professional developer, it's always much easier to do good work when you have a full picture of what your client is doing. The skills that are needed for all of this work aren't outrageous - you should be able to find many shops that can do database work + data layer work + web service work + web site work + mobile app development.
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
So should I get a mobile app dev to do the API as well as the app, and then get someone else to do the web front-end? Or should the dev doing the web front-end also do the API, so that all the mobile app dev does is create the mobile app?

Also, when you're referring to different servers... I actually plan to use a cloud host, so it would be the same server for everything, right?

Thanks again for your help (and great diagram btw).

I would suggest having separate server instances (e.g. Tomcat) for your front-end and back-end. You can run them on the same physical machine if you wish.

It's a good idea to have your front-end and back-end in separate server instances.
1) It forces the abstraction layer. This is more important than most people realize.
2) If you set it up right, it only adds a few milliseconds to the response time.
3) If your product gets big and you start needing multiple servers, it helps to be able to pull apart your front-end and back end services. (If your back-end starts to get big, you might even want to break it up into several services).

FWIW, if I were doing this, I would add another server to the diagram I created. I'd have an API server that sits between the iPhone app and the back-end server. The API server handles the communication to the iPhone app uses and uses a nicer protocol to talk to the back-end server.

I'll second what joshsquall said. You should have one development team working on the entire project.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |