Deployment for Angular, mySQL and Spring Boot? - mysql

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

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/

Service Fabric - can a .net 4.7.2 application running in a container on IIS access the fabric configuration settings?

I have a Fabric application that I need to deploy a SSRS report viewer control to. The control is webforms, and there is no .net core version available yet, so my plan is to host it in a windows container with IIS.
I would like to keep all my configuration in one place, that place being the service fabric manifests. Will it be possible for the webforms pages to read fabric configuration from inside of the container?
when I attempt to get config from fabric I get this error
Unable to load DLL 'FabricRuntime.dll':
I have tried to call SfBinaryLoader as is detailed below, but no change
https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-services-inside-containers
You have two options:
Load config via the SF APIs, which is what you are trying to do or
Load config just via reading the file. Some folders are automatically mounted inside the container, which you can access through the file system in the container for example using the Fabric_Folder_Application environment variable (or others depending on where exactly you're keeping your config), or mounting the config path via a volume:
<Volume Source="/mnt/hostfolder/" Destination="/var/containerfolder/" IsReadOnly="false" />
Using the SF APIs from within the container is possible. I would recommend following the guide that you pointed to separately and to ask separate questions if you cannot get that to work as it may help identify other issues.
That said, using the APIs is less common for containerized workloads. Normally people just use Environment Variables to configure services running within Containers, as that is more common/standard, even if less flexible.

Can I access a mySQL DB created in phpMyAdmin with a web app that runs with the IDE's tomcat?

I hope I don't make it very confusing. So, for a school project I need to make a Spring MVC webapp that runs with a simple tomcat and connects to a DB. I downloaded xampp and made a DB with phpMyAdmin, but also run my app with an embedded tomcat server. I'm not exactly sure why but this seems problematic as I cannot access localhost. Is there a way to connect my app to the phpMyAdmin DB? If not, what would be an easy way to create and access a DB (I need only a really simple schema of one table)?? Any advice would help a ton!
If the web app is for long run i would suggest use of Hibernate ORM, you need to config and with few lines of code it will be live and runing, for just for trial or learning, H2 is a good options as #zlaval said in comments. And you can use any Database with Hibernate ORM, with one or two hours of research and studying you can achieve the task you searching for easily.
If you need to go for hibernate there there is some explained and easy steps to do so with hibernate ORM.
https://www.codejava.net/frameworks/hibernate/getting-started-with-hibernate-annotations

Building a React/Spring Boot/MongoDB Application

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.

How to migrate a Project from 'OpenShift Web Console' to '(Next Gen) Web Console'?

Is there a way to migrate a server application (with its repository), to the new Next Gen Console?
I have already a WildFly server in my personal account at URL: https://openshift.redhat.com/app/console/applications
But when I open the Next Gen Console, it's empty, and suggest me to create new project with a new server.
https://console.preview.openshift.com/console/
Is there a way to avoid setting up everything again?
I would like to keep server configurations, git repository, and Jenkins app from my former OpenShift Web Console.
Sorry, there is no direct migration tool. The manner in which the systems works is quite different from an operational standpoint, but you are also potentially going to have to tweak how your application code is organised and configured. I would suggest you create a fresh application in the new version to learn more how they are different and then you can plan what you may need to do to migrate it. I would suggest making using of the Google Group for OpenShift if you have more questions as it provides a better forum for discussion.
https://groups.google.com/forum/#!forum/openshift