TideSDK with Spring MVC - html

Just wondering, is it possible to turn spring mvc web development content into a desktop application using TideSDK? Both are using HTML5 as the front-end. Then, as for the back-end process, it should be able to reuse the java code inside spring mvc.
I just finish a web project that was developed using spring mvc, and there is a request to turn it into a desktop application. I was looking around and found that you can use HTML5 for creating desktop application. It would be nice if I can directly convert it to desktop.
Thanks for the response :D

Unfortunately the answer is no. TideSDK has support for different server languages, such as PHP and Python, but Java is not one of them.
What you could try is to make the app a shell for the webpage. So when the app starts it immediately loads http://yoururl.com, the behavior would be exactly the same as in a webbrowser.

Note that when you load any remote URL, all native functionality would not be available to the page.

Related

Xamarin: how to create views / UI of an app dynamically from a Json

Have you already developed a Xamarin app whose views are generated from a Json recovered when launching the application?
I met a client with this kind of need:
they are developing a web app to prototype the screens by adding and positioning some controls (TextBox, Label, ...)
this generates a Json that must be interpreted by the Xamarin app: this will build the different views dynamically
in a first version, the user's data would be stored locally (through a file or SQLite) and synchronized "manually" when the device is connected to a computer
the app will work on Android only in a first time, and then on WPF
The client has not yet decided between Xamarin.Forms or Xamarin native, but it's probably more interesting to do it through Xamarin.Forms, even if iOS is not required: this should make porting on WPF easier.
Have worked on similar cases? Have you some recommendations? Are there plugins or patterns that could be used to simplify this development?
I've found this one, but it doesn't seem to be the same use.
There is also this article on iOS, but there is not the same thing on Android.
This would in theory be possible using a massive code behind builder for a page but should NOT be done for a production app. Mobile apps have very specific requirements that need to be thought of before attempting.
Xamarin is great for simplifying code reuse, and if you use Xamarin Forms you can reuse the UI components for Enterprise apps.(the less fancy and pixel perfect the layouts need to be the better. )
Your client would be better served by making it a mobile compatible web page instead from the details you have shared.

How to create desktop application and store data online?

I'm used to creating web apps. Using cpanel and mysql database. I am looking into creating desktop application with a similar web app concept with multiple users, login system and basic CRUD operations. In web app we simply host the website and use cpanel and mysql . How about in desktop application? what are the normal practices for creating a desktop application and storing data online(like cpanel's php myadmin)?
please advice. Thank you very much.
This is not the best answer but Simple solution for lazy people like me. The best practice for this in my point of view is creating the desktop app via WebView for example if you want use java for the Desktop then there's WebView interface In JavaFx for webpages the WebView works like a browser it include HTML5 and CSS3 or Electron which is framework for creating Desktop app via web technologies. You can find more info about it.

Front end for an iOS web app using Django Rest API

I ve recently been asked to work in the front-end of a new app which will be written with Django for back end.(They said it will be for iOS).
Even though I have experience working with front-end I never wrote any code for iOS or Django REST API. What are the differences? Is it html/css ?
In another words lets assume that someone has a code in Django which asks user a question and stores the answer. The response will be in JSON(I think.) He wants me to write front end. Should I write it in html?
One more question: What will determine that our app will be working in iOS and will not work in android. They said the app will be for iOS at first but since it uses REST API what is the reason it cannot be available at the same time for android?
The usual process of using django rest framework is to have interactions with your backend exclusively using json.(most of the time, some people might use xml). So in general, all the information (requests and responses) will be JSON. Once you have that part setup, there are a number of technologies that will help you create user interfaces. You can use angularjs or JQuery to send JSON requests and responses to the endpoints and display the information obtained.(the whole interface is modified with javascript.)
Now, for your mobile apps. There are two approaches you either create what people call a native app using Java(for android apps) or Swift(for apple devices).
If you decide to use that approach you will have to mantain both apps in different languages. The other way of doing things would be to create an interface using something like angularjs and use a tool like ionic to convert that app into an android/apple app. Using that approach you will only have to mantain 1 application.
Here is a small diagram to represent the interaction.
(Django rest framework) <=JSON=> (front end app.)
I would suggest to start with django templates, it might just do the trick.

Is there any GUI framework with support for both web and desktop apps?

Is there any GUI framework that can render a UI I create both as a web app and a desktop app, like on created with Qt or GTK? What I do not want is a "native" app that just displays the HTML UI in a window.
Have a look at Silverlight if you don't mind .NET coding. It is possible to do desktop and web using the same codebase. See example here
You can create native apps for Linux-based OSes easily using Quickly.
Also, in the event that you decide to just create a native app that displays HTML, note that Prism will be a good platform to use.
It will probably save you a lot of time to just have a native app shell that displays the HTML, because there will be no extra coding.
I don't know of any programs that will convert HTML directly into native UI.
There is an effort to realize this for Qt using QML:
QML2Web

Web Application Framework - HTML5 with mobile devices JavaScript support

I searched for Java based web application frameworks the last few days. I have to build a Java EE backend and a HTML5/CSS3/JavaScript frontend which can be accessed with multi-touch capable devices. So I will need modern JavaScript frameworks like Sencha Touch.
My backend should be built upon with Java EE, Hibernate and MySQL. I have two kinds of data transfer: AJAX / JSON so the page does not need to be reloaded and pages and normal pages which reload the page by sending a form with POST (or do you think to have more the feeling as a application I should do all stuff with AJAX/JSON?).
I found several web application frameworks:
JavaSever Faces
Apache Wicket
Spring MVC
handle it only with jar files for JSON (and REST)
Google Web Toolkit
What do you think will fit best? Perhaps you can exclude one of them, that would also be great, so I can take a closer look at the remaining technologies.
Best Regards, Tim.
Interesting question.
Concerning exclusion: If you use a JS framework like Sencha Touch in the frontend I don't see the sense in using something like GWT which is for frontend-code generation.
I would probably stick with a more lightweight framework like http://www.playframework.org/.
You get your data from the backend and then hand it via JSON over to your frontend code i.e. sencha, sproutcore, cappuccino, gwt or what you choose to use.
Let me know what you choose :-)