Developing Mobile app with CUBA at the server side

Hi
I am planning to develop a mobile app that will run on the CUBA master project as a server-side layer. I have no preference for the technology of choice rather want to decide at this stage which will be preferably easier to learn as a newcomer from java programming world.

The mobile app will be purely business application where database access to the server, CRUD function as well as maps/GPS resources to be used. Offline mode is preferred but not critically required

I know CUBA team has a sample app on Angular JS but it seems that this is no more a preferred language to integrate with since platform version 7 has the option to readily integrate with polymer2 (not polymer 3 yet) and react based front-ends.

I would appreciate your suggestion for:

  • What platform/language do you suggest. (preferred, “code once run everywhere - Anroid./iOS” but not essential if it is easy)
  • Suitable IDE (I am more pro to anything like CUBA screen designer+controller). I would prefer something simple and RAD tool if that exists

Looking forward to any comments and suggestions.

1 Like

Take a look at Flutter from Google - https://flutter.dev/

Seems very promising.

Br,
Torben

1 Like

Hello Torben
I am exploring this, looks good as first impression.

Hi Community, feel free to comment and share your thoughts.

I know I am very late…

I recommend Cuba-Platform on the server-side and React / React Native on the client-side

1 Like

@robert.gilbert
It’s never late! I am totally new to the mobile app world, no experience :wink:
It is noticed that the front generator in CUBA Studio can generate UI in React, that looks good. I am wondering if there is any visual tool like CUBA Studio (screen designer) can be used to work with React to take it forward after CUBA studio has generated the code. Any comments?

@mortozakhan
I do not know of any tool. I have coded by hand after the CUBA Studio generated the front-end code.
Maybe someone else know of a visual tool ?

@robert.gilbert
When you generate the front-end in CUBA can you package it as a mobile app?

Although I have no experience in packaging the front-end as a mobile app, I would think so.

Maybe someone else here on the forum can speak to that ?

Probably you can have a look to this which convert React Code to native code in more than one platform.

(Facebook)

Probably you can use react Code also on desktop via Electron:

Anyway I did not yet tried it, I used in Cuba Framework 6.10 Google Polymer 2.x/Typescript (super Language semi-object oriented on Javascript/ECMAScript) which is now deprecated by Cuba platform.

Polymer 2.x
https://polymer-library.polymer-project.org/2.0/docs/about_20

PhoneGap: transforming Polymer JS code in native application (packaged .apk for Android). On Apple need XCode, even if Apple dismissed some PhoneGap tools having developed its own app-development platform.

https://phonegap.com/

In my experience probably you can probably use any indipendent framework for app frontend (in Polymer it covers also mobile site, which code is ‘transformed’ in native apps by phone gap) and use Cuba platform API to integrate for user authentication, accessing Entity/Query/Services.

REST API Documentation and profiles for tests also on SmartBear

Generrally we can say Cuba Platform creates a scaffold application (in mobile language supported) and deliver some API to integrate mobile development with Cuba REST Services. substantially for authentication (which differs from similar service for traditional WEB app), and accessing data model with security model included (so generally similar to WEB Application), directly or by query and services.

Hope to be of some help.
Bye,
Fabrizio

https://doc.cuba-platform.com/manual-7.0/rest_api_v2.html

1 Like