My team is familiar with Java and we don't have much time to learn "nodejs" and the related "express" framework. We really want to use react-native to develop some application.
I'm frustrated, since I don't know whether I can use react-native with Java and an Apache Tomcat Backend.
If it is possible, what should I do to make it work?
If not, how do make it possible? By using node as the request dispatcher?
Any ideas are appreciated!
Sure you can! React Native is a backend-agnostic technology. Just write your backend in any way you want and expose an API that can be consumed by your application!
For communication with your backend you can use "fetch", "websocket" or "xmlhttprequest". You can find more information and examples in the official documentation: https://facebook.github.io/react-native/docs/network.html
Related
I am working with Expo and i dont want to use dev client. Anyone got any alternative to react-native-fast-image or a way to implement it without using dev client?
I'd like to have pure network level verification that an IP is reachable, not the HTTP level, since I am trying to verify connectivity with devices that may not implement HTTP.
I already use react-native-udp, react-native-tcp and other native bindings, but does not seem a method to achieve this goal.
Thanks
If you have not found a package that does it, I would go with a native solution. There are several packages for iOS, like GBPing or Apple SimplePing and a quick search in Google showed some pointers on how to implement it for Android. Then you just have to do the binding to JS, for which you can find some help on the documentation.
You can use react-native-ping package to perform ICMP ping on react-native.
To install package:
npm i react-native-ping
I have an Angular(2) + TypeScript application using Keycloak as the authentication/authorization provider,
would like to integrate Keycloak with NativeScript to make the existing web application cater to iOS/Android users.
could see Keycloak supports iOS/Android as listed here : http://www.keycloak.org/docs/2.5/securing_apps_guide/topics/overview/supported-platforms.html?408DD571-0042-4EBB-BC37-1F2966A56651=123451
Is there any NativeScript based plugin to integrate with Keycloak (could not find anything here : http://plugins.nativescript.org/ ) ? pointers for a possible solution would be of great help
Version:
tns --version
2.5.0
Looks like the answer is no. But I start playing around, and to create a plugin, we have basically two strategies:
Extend a pure OAuth client for nativescript. There is this plugin: http://plugins.nativescript.org/plugin/nativescript-oauth
Port the keycloak.js to Nativescript.
I like the second approach because there are more features build in keycloak, so my first try was edit the original code and remove the use of window and other API's that are not present in the browser. I quickly find out that keycloak.js code is a mess (at least to me), and I'm getting a bad time undestanding how to edit its 1258 lines. Because of that, I start a complete rewrite, highly inspired in the original. I'm actualy reading the code and trying to port the project piece by piece, reorganizing for test, and abstracting the use of browser API's to port for web and nativescript.
You can check the code here: https://github.com/atende/keycloak-js-universal but is not close to ready.
The problem is, I have no time to do it :-), but will get done eventually, because I need that too.
Is important to mention that I create a abstraction for Angular 2 that works using the keycloak.js for security, and porting the keycloak.js is strategic to make the library work for Angular 2 Nativescript, which is on my motivation to do it. You can check the project here: https://github.com/atende/angular-spa
Any contributions are wellcome ;-)
I'd need to know if it's possible to setup a management user for the JBoss (AS7 and WildFly) which is valid just for the CLI (and not for the Web console).
Thanks
I'm afraid you can't since the CLI and the Web Console use the same API. Since also both may do the same stuff I don't see what you are trying to achieve.
I'm currently working on a project (basically an app for iOS and Android + Backend), which needs to be highly scaleable. As we'd like to host everything on our own servers, MBaaS are not an option.
The problem now is, that I'm not sure where to start with the backend. Are there any useful "tools"/"server"-software out there, which provide a good start?
Thank's for you're thoguhts.
For anyone who's interessted.. You may want to start with the Play-Framework or Sails.js (based on node.js).