Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Spring Boot App with React

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I'm learning Spring Boot and ReactJS and thought of building a simple web application to practice. The idea is to allow users to add Coupon Information and then get alerted (not decided how, but Email is a thought) when the coupon nears it's "To be Used by Date". This is just a hobby app for me to learn both the technologies. Most of the websites I have checked have the React App served from a NodeJS server and then for the backend it interacts with Spring Boot mostly through an API. The one tutorial I had with just Spring Boot and React (using Thymeleaf) here seems overly complicated as it references something called web-pack which I have no idea about.

So my question is how common is to have a NodeJS with React and a Spring Boot and is this even a good architecture for web applications? If not then is the architecture in the tutorial (link above) more common?
I have only worked with one front end and one back end server/service so far in my career.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In general, with the help of Reactos, you can do literally anything. I think your idea with coupons is very good! The main thing is not to give up and implement it to the end!
 
Ranch Hand
Posts: 62
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The preferred way should be probably to have a REST API implemented in Spring and use React in combination with Redux on client side. Redux acts as an in-memory data storage that cab be queried by React components and updated from Javascript functions fetching data from Spring backend.

An example is HERE and the picture from the same site show the overall architecture of this approach.

 
Kroulie Marlow
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kroulie Marlow wrote:In general, with the help of Reactos, you can do literally anything. I think your idea with coupons is very good! The main thing is not to give up and implement it to the end!


With the help of ReactJS, you can make any script or code you want. Similarly, with the help of Spring Boot, you can create any unique, multifunctional applications you need. But the main thing that prevents any developer from creating an infinite number of applications is the complexity and amount of work. I think your idea with coupons is very good! But how to link Spring Boot and React JS to make your simple application work is unclear and quite difficult. I wish I could help you, but I am a simple engineer by profession and usually do not develop anything. In rare cases I build ready-made applications through similar services like https://flipabit.dev/. So I can only say one thing, don't give up, I'm sure you will succeed!
P.S : "Sorry, I just wanted to change my post, since I don't really like the last one. I'm a bit shy and don't often write comments. That's why I decided to change, I hope I can do it this way?"
 
reply
    Bookmark Topic Watch Topic
  • New Topic