SimplCommerce icon indicating copy to clipboard operation
SimplCommerce copied to clipboard

How to use SimplCommerce in mobile app

Open Vaidehi17 opened this issue 7 years ago • 5 comments

Hi,

I want to use SimplCommece solution in mobile app.

Since the controllers are part of class libraries, is there any solution to access those controllers through webhost, as they are not accessible as API?

e.g. If i want to use Register API from AccountController, it is not accessible as it exists in class library.

Vaidehi17 avatar Jul 31 '18 11:07 Vaidehi17

It will be good to have your own Authentication Service for your mobile app. You can use JWT and validate it in SimplCommerce I guess

selombanybah avatar Jul 31 '18 15:07 selombanybah

Would need to modify modules to expose the MVC Actions as WebAPI actions to return Json. That shouldn't take much to do since the code is already there. Similar to how the admin section is done with AngularJS.

Could build an SPA application that way,

Also would need to authenticate the app as @selombanybah has mentioned.

michael-nee avatar Jul 31 '18 18:07 michael-nee

http://docs.simplcommerce.com/en/latest/token-authentication

thiennn avatar Aug 01 '18 02:08 thiennn

I think the better thing is to use a headless architecture (decouple the front end (ui) and thefront end (business)). https://en.wikipedia.org/wiki/Headless_software

jducobu avatar Oct 27 '18 11:10 jducobu

http://docs.simplcommerce.com/en/latest/token-authentication

broken link please assist

sarathbitpro avatar Sep 10 '21 13:09 sarathbitpro