Standalone ServiceStack for Web and Mobile Applications

Our architecture consists of several backend (non-service) services and applications that send data to our system through the ServiceStack service located in asp.net - this is currently a stand-alone ProjectProject project containing our necessary services / repositories / DTO following the structure all provided ServiceStack samples .

Now that our backends are complete, we are developing our two interface requirements, consisting of a web application and our own mobile application. For a web application, I would really like to continue using ServiceStack with the Razor plugin to create layout / views of applications from our existing DTOs, for our mobile application we will only rely on ServiceStack for authentication and data - since this is its native layout / view will come from it own SDK.

Can I leave my standalone ServiceStack as is and:

  • Create a standalone web application project that authenticates against our existing standalone ServiceStack service and uses the Razor Browser Plugin?
  • Do our native mobile application clients authenticate with the same standalone ServiceStack?

Most examples, i.e. RazorRockstars I saw that you have services built into the web project, so I'm not sure if this distributed installation type is supported. Any recommendations or feedback on this subject are welcome!

+1
rest architecture servicestack
source share
1 answer

It is very possible. You can use the web service both from the Internet and from your own mobile application. I worked in an ASP.NET MVC web application that was used to call a web API service hosted on different servers. The web API service has been split between several applications. We consumed it by making AJAX calls from a client.

Something similar to your script is executed at the link below, but they use the cloud services service: http://www.codeproject.com/Articles/529109/Mobile-2fWebplusClient-2cplusWebplusAPIplusandplus

If you have the opportunity to create a web application for mobile devices instead of your own application, then in one solution you can create a mobile and desktop application. A sample solution can be found here: http://nopcommerce.codeplex.com/

Thank you and feel free to discuss more in case of further questions.

0
source share

All Articles