Running backend before electron app starts - spring-boot

I have a simple vue app that connects to spring-boot backend. I integrated electron in the vue app so it runs as a desktop app as well. Everything works but I have to run the spring-boot manually before running the vue desktop app.
How can I run the spring boot from the vue electron app so the user does not need to run it manually?
The vue desktop app is available here https://github.com/iaBIH/pr-vue-tutorial/tree/main/vueARX/simple-ui
Thanks!

Related

Implementing Sign in with google on react native application with PHP Sociallite laravel backend

I'm trying to implement a sign in with google button on a react native application, there is 0 documentation nor any help online with my scenario, there are only firebase examples.
This already works perfectly on React js app, everything is configured correctly, however on the react native app, I'm just stuck with a library that takes the client ID, I recieve authUserCode, and some other google credentials, but no redirects occur, normally on the react js, it redirects to another url, and to the backend and retrieves the token and saves it as a cookie. How can I continue with this on react native? should I call the redirect url manually?
Laravel with Socialite on the backend, react native on the front end, callback function and url work perfectly.
I had developer error on react-native-google-signin, but was solved when adding localhost to authorized javascript origins. Can someone explain this
in react native you can't use cookie, so use AssyncStorage for save state of new user, and when you use google login in react native you may set firebase:
create new project
2- create android application in your firebase
project
3- when you try number 2 : enter your package name
correctly, be careful! and enter your application SHA1 code.
3-1- for getting SHA1 code go to the android studio, in right side, click
on Gradle>Tasks>android>signingReport double click on
signignReport.
3-2- in the Terminal ( of android studio ) you should see SHA1 codes, don't hurry, Look for
Task :app:signingReport
Variant: debugAndroidTest
Config: debug
copy their SHA1 code and go back to the firebase.
4- enter your SHA1 code and create application, in the next firebase gives you a file, google-services.json.
4-1- download the file and copy it to android>app in your project.
your firebase set is complete.
These steps will allow us to return to your application when the validation is complete.

How Can I deploy Laravel 5.8 + Vue application to shared hosting cpanel main domain and subdmains

I have already developed 2 applications and I want to deploy my first application which contains Vue Cli and Laravel Php framework on the main domain and the other application similarly made with Vue and Laravel in my subdomain. Please, could you suggest to me how could I perform these actions? Thanks

Make certain routes inaccessible outside react-native app

I have a react-native app that communicates with a laravel backend. I need to be sure that the backend routes are only ever accessed by the mobile app and never from a web browser or curl requests. Bottomline, i want the routes to inaccessible outside of my react native app.
How can i make sure that the routes are only accessible from the android react native app in laravel?.

Jhipster social login with ionic 2

Use case:
Ionic 2 app using jhispter as a backend.
JWT Auth working fine.
Overview of the issue
I added social auth to jhipster back-end, but i can't figure out a way to communicate the ionic 2 app with the jhipster social login, i was thinking of using cordova inappbrowser to do this but can't figure out how.
it seems to me that is not possible to do this with jhipster and ionic directly, perhaps using Auth0 may be a solution to this.
Ignite JHipster has social login but without ionic

Create a helper app without Sandboxing

I've found several guides (here, here, and here) on how to create a helper app to launch a main app on login. However, as my app is not distributed through the App Store, I do NOT want to enable sandboxing, and all of the solutions I've found require both the helper app and the main app to be sandboxed.
Is there any way to create a helper app to launch a main app at login WITHOUT requiring the use of sandboxing?
You can use [NSWorkspace launchApplication:] to launch your app from your helper.

Resources