I have a back-end system running as microservices implemented in Spring Boot and I want to integrate a front end React app which needs to communicate with the back-end API. I want to deploy the applications in in-house Linux servers. Not using AWS or Kubernetes/Docker. What is the general pattern of deploying React application with considering HA (highly availability)?
Related
I have Ruby on Rails MVC Application deployed into AWS server.
Using Ngnix and Passenger
But now I want to deploy react application deploy in same server with same domain using MVC application API's
How to configure Ngnix for react application to run both MVC and React Application with same backend
Here react is in different project folder
I am a beginner in AWS and want to host a website whose backend is on Spring on frontend on React. I think we have to do it by using EC2 instances, my senior mentioned it. Any help at all is appreciated.
Right now in my react application, the data submitted by the user is being sent to localhost:8080 where my spring boot application is hosted. I think I'll have to host these 2 applications separately and follow the same procedure.
Take a look at the workshop for Web application Development with AWS Elastic Beanstalk. You will learn how to deploy a React frontend and a Node.js backend. Since you want to use Spring Boot for your backend, adapt that part of the workshop by applying what you learn in this step-by-step guide Deploying a Spring Boot Application on AWS Using AWS Elastic Beanstalk.
Here is an AWS tutorial that walks you through this use case. The Front end is a React App that sends requests to a Spring Rest Backend that returns JSON.
https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javav2/usecases/Creating_Spring_RDS_%20Rest
The React app displays the data. I have successfully deployed the Spring backend on Elastic Beanstalk -- as shown here:
To learn how to deploy a Spring App on Elastic Beanstalk, see the section titled Deploy the application to Elastic Beanstalk in this tutorial.
https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javav2/usecases/creating_first_project
All of the information you need to get this use case working is in these 2 articles.
My project contains two apps. Backend – springboot and a frontend - React.
I am using the spring-boot app only as a rest API to fetch data from the database. The React app frontend will call the API. Up until now, we were using only one environment (Windows) so production build was one jar that actually contains both apps and a tomcat. That was quite simple so by adding a proxy in the package.json file to point to the backend and some maven(frontend-maven-plugin) plugin the building process is simple.
Now we need to change the system architecture so each app will be hosts on a different windows machine.
I was trying to use express to host the react app but I am struggling with the proxy setup for the backend (spring) app from the express server. All the tutorials that I found actually using the express server as the backend API but I need the express server only for hosting the production build.
Is there a good tutorial that shows how to set up this type of architecture in production env.
Thank you
Is there any possibility to deploy the Angularjs app as a standalone Desktop application manner?.
This Angularjs application behave as a REST client which communicate with Spring REST back end Server.
hi i develope a mobile app with phonegap frame work and html5,erything works fine but for future exist i need to connect my app to server db to make app multi-user. rit now i just create a local storage by using js which store all the user data in perticular local storage? what are the options i have to make the db server connected do web services work with this if so what kind of service i need to use. itried for few web services but all they are related to web applications. plzz help me thanku
Your phonegap App is like a Web App. The advantage that your phonegap app has over Web App, is that you can access native features (camera, Contact, etc..) of the phone with phonegap, which is not possible with a pure webapp. So all the backend services that you can use with web app can be used by your phonegap app.
Now which web servcies you want to uses depends upon your preference.
You can use web services or RESTful service for getting data from the backend.