Building a React/Spring Boot/MongoDB Application - html

I have created a React application using create-react-app. I now want to send the application to a friend so that they can use it. However, I do not want to have the hassle of all of the files, dependencies etc. Is there a way I can 'build' the application into one executable that can be run on any computer? I have no need for the application to run online, localhost is fine. I should also mention that I have a Java Spring Boot backend and a MongoDB database that are both used by the application.
Thanks!

If you want to integrate with Spring Boot backend , all you need is to put the final build files in the build folder of Reactjs application into the static folder of Spring Boot project.

Related

How to deploy Angular-Flask-MySQL Project on Heroku which Stored in Github repo

I am currently working on a project that uses Angular as frontend framework, Flask as backend framework and MySQL as database.
Furthermore, the developement of the application is completed and the source code is stored in private Github repo.
My next step is to deploy this project on heroku server. After done some research l found that i have to change the database to Clear DB which is the database available in heroku. As a newbie this is my first web app deployment to heroku server.
Is there any online source where i can refer that can fullfiill my requirement or if somebody has done this approach previousely could please list down the steps so i can follow them. Your help will be highly appreciated.
Thanks and best regards.
I had done a project related to angular and flask. I faced the same issue when it comes to app deployment phase.
I deployed the angular app and the flask app in two separate heroku servers. Using this method it is easy for you to do the furthure developments of the application as well.
Following are some reliable sources you can refer,
Deploy flask app to heroku
https://stackabuse.com/deploying-a-flask-application-to-heroku/
Deploy angular app to heroku
https://www.javaguides.net/2020/11/how-to-deploy-angular-application-to-heroku.html?m=1
After deploy both these frameworks separately you can replace your angular api call from https://localhost:5000/api/ to https://yourbackendserver.herokuapp.com/api/

Deployment for Angular, mySQL and Spring Boot?

As the title reads I am currently looking for the easiest and most-friendly path to take to deploy my project which uses Angular, Spring Boot and mySQL. I have looked in to a couple of methods, one which involves AWS S3, another using Firebase and a third which uses Heroku. I just wanted to know what the best way to do this was, and if it is better to deploy them separately with different servers, or combine them into one?
There are so many options, but maybe one is less convoluted; I was hoping someone could point me in the right direction.
Thanks in advance.
I think the easiest way would be
Build your angular project.
Copy the angular's index.html and built javascripts files to Spring
boot's resource folder.
Create a controller to serve the index.html.
Make sure your spring boot project is serving the index.html and javascript files.
Build jar
Create a docker container for your jar with java and mysql
Deploy to your favorite service

How to deploy Java Web Start under Apache Karaf?

One of our enterprise application is running over Apache Karaf , this application is accessed through web client.
We have another standalone desktop Java Swing based application. We want to invoke this application from browser.
So , we decided to deploy this application as Java Web Start and allow clients to invoke this application.
We have lot of examples how to deploy Java Web Start with tomcat like web servers.
But we want to deploy this in Apache Karaf . Anyone is having tutorial or notes for this?
I would strongly advise against Java Web Start.
If you don't want to rewrite the app, have a look at webswing. I have never used it but they claim they can convert Swing Apps to Web Apps instantly. I also have no idea how that would work with OSGi. Depends on what they actually do it may be easy or impossible.
If you are OK with some changes you can try JavaFX or Vaadin. Both are quite similar to Swing in terms of development style so it should be relatively easy to convert your app. Both can run inside OSGi container with some minor limitations and after some adjustments.

Jhipster: Making a WAR file with client-configurable Datasource

My development team is working on a web application and has assigned me to research on how to make a client-side WAR file with a configurable Datasource.
This is the first commercial project of ours:
Language: Java / JavaScript(jQuery and AngularJS) / HTML / CSS
Database: MySQL
Development Tool: IntelliJ
Automation System: Gradle
Application Generator: JHipster
Version Control: SourceTree
At this time, our client has agreed to simply deploying the app on his own Amazon Web Server's MySQL database using an executable file (currently, a WAR file) delivered by us in a safe USB.
So far, the WAR file can be made with JHipster and deployed with no issue on our internal server. However, we did hard-code all the database-connection (JDBC) stuffs in a YML file under src/main/resources/config.
Naturally, our client has a database with totally different schema, usernames, and passwords. And the WAR file we are about to give him cannot be executed unless the datasource specs in there match his.
Because source codes cannot be extracted from a WAR, the client is not going to modify the datasource from his end. At the same time, he does not fancy giving us datasource information.
Thus, we are to come up with, quote, an executable file which allows him to configure the datasource the first time it is executed on his AWS.
Is there a way we can achieve this while not straying too far from the current deployment method (WAR file)?
Nothing specific to JHipster here, it's purely a Spring Boot question. You can either provide an application-prod.yml external to your war file or keep it internal but use placeholders referring to environment variables defined in your client server.
For more details, read the Spring Boot doc https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

How to make .exe files of yii2 application

I have designed a CRUD application in yii2 using model, view and controller. Now I want that this application should be used by users online. How should we do that?
Whether we should make .exe files or host this application?