Full Stack web application using Spring Boot and React | REST API | MySQL | React Hooks

Поделиться
HTML-код
  • Опубликовано: 5 июл 2024
  • Create Full stack web application using Spring Boot and React. In this video we will use Spring Boot ( MVC, JPA, Hibernate) and Mysql Database to create the Backend application (Restful web service API) with and use React.js to create the frontend application with Material UI and React Hooks( useState, useEffect) with functional components. We will build simple full stack project with RESTful Web services API and also use fetch (you can use axios) for consuming REST API.
    Install Java : • Install intellij in wi...
    Install Intellij : • Install intellij in wi...
    Change Java versions : • How to switch between ...
    Install Node.js (Windows) : • How to install Node.js...
    Install Node.js (Linux) : • Install Nodejs and npm...
    Github Link : github.com/youtube-arjun-codes
    Source Code Backend : github.com/youtube-arjun-code...
    Source Code Frontend : github.com/youtube-arjun-code...
    Spring Boot CRUD : • Spring Boot RESTful CR...
    Timestamps :
    00:00 - Intro / Demo
    00:50 - Prerequisites
    01:42 - Backend folder structure
    06:39 - Model
    09:43 - Spring Boot configuration for Connecting with Mysql
    12:53 - PostMapping (Saving Data into Database)
    18:33 - GetMapping (Getting Data from Database)
    21:10 - Create React App
    24:56 - Adding Appbar
    28:20 - Adding Controlled form for Adding Student
    36:10 - Send Data into database
    42:55 - Get Data from database to react app
    48:17 - Full stack Spring Boot React Project Completed
    ➡️:React Playlist ArjunCodes :
    • React Router | Router,...
    -----------------------------------------------------------------------------------------------------------------------
    ➡️:SpringBoot Playlist ArjunCodes :
    • Spring Boot
    -----------------------------------------------------------------------------------------------------------------------
    ➡️:Github Playlist ArjunCodes :
    • Github
    -----------------------------------------------------------------------------------------------------------------------
    ➡️ Subscribe : / codewitharjun
    Stay Connected :
    ➡️ LinkedIn : / arjungautam1
    ➡️ Github : github.com/arjungautam1
    Join Community :
    ➡️Discord : / discord
    Follow me on :
    ➡️ Medium: / codewitharjun
    ➡️ Dev.to : dev.to/codewitharjun
    ➡️ Spring Boot FB : / 4242697249086041
    ➡️Telegram : t.me/arjuncodes
    ➡️Discord : / discord
    ➡️Subscribe : / arjuncodes
    #FullStack #SpringBoot #React #programming #arjuncodes #CodeWithArjun

Комментарии • 358

  • @felipematheus6518
    @felipematheus6518 3 года назад +31

    Great video! what front-end(JS) framework do you think is easier to learn first? React,Angular,vue? i used jquery(ajax), people said that Angular is easier for java developers to learn... Cheers!

    • @CodeWithArjun
      @CodeWithArjun  3 года назад +13

      Thanks. React is easier to start with. Angular is not easier for java developer to learn but since both java and angular are used in enterprise level so angular is used by Java developers.

  • @yldrayozturk6276
    @yldrayozturk6276 Год назад +40

    Guys we use React because when we change some component then we dont need to refresh page . So if you put [students] parameter which is the end of the useEffect() function , you will see when you add a student and click the submit button, students list automatically refresh without all page refresh. (sorry for bad english :))

    • @justmonika6529
      @justmonika6529 Год назад +4

      Thats awesome. It worked. Im a beginner btw. May I ask why this happens?

    • @mohamedmehenni3651
      @mohamedmehenni3651 Год назад +8

      @@justmonika6529 when you put [student] in the end of the useEffect(), here you say to useEffect() to execute the block of code that it contains, whenever the student array changes... Read more about useEffetc Dependencies.

    • @subbup401
      @subbup401 4 месяца назад

      Thank you bro

  • @sheltondany8209
    @sheltondany8209 6 месяцев назад +5

    Even though very basic, Its the perfect intro for amateurish coders, dint know much Spring or React but had some knowledge of Java, Java Script, so this was so nice!

  • @TheSmokinApples
    @TheSmokinApples Год назад +2

    Man! I love you for making this! I have been trying to find a basic tutorial on how to use react with spring boot!

  • @robkao-og9xx
    @robkao-og9xx 9 дней назад +1

    Very concise, straight to the point, beginner friendly. Thank you sir.

  • @raichungpunmagar7984
    @raichungpunmagar7984 Год назад +2

    I've looked from youtube to udemy for a good Spring Boot and React tutorial for begineer and this is the best video there is. Simple yet so informative. Lots of thanks to this channel

  • @Alenk1020
    @Alenk1020 2 года назад +1

    hands down the best right into the point, full stack tutorial, amazing job.

    • @CodeWithArjun
      @CodeWithArjun  2 года назад +1

      Glad it helped! Be sure to subscribe.

  • @xuechengliu8178
    @xuechengliu8178 Год назад +3

    super good and easy to follow content. Great starting point for backend developers to understand how to communicate with frontend.

  • @ajinkyakhete1151
    @ajinkyakhete1151 Год назад +3

    Hats Off Sir !!!! Best Video Learned All the concepts in one Video Thank you very much. Wish you a great journey ahead ...

  • @elijahamelia3314
    @elijahamelia3314 3 года назад +1

    This is amazing man . Thank you so much for this video.

  • @scv9683
    @scv9683 2 месяца назад +1

    This lesson is a very basic standard, but it will give a fantastic feedback to rookies, I love it!

  • @eduardojls
    @eduardojls 2 года назад +2

    By far I have completed the backend part, so I just have to say THANKS for your explanation, is so brief that's is pretty enough to understand. Let's see how the frontend with React goes. For future content would be nice a tutorial about how to implement Native Query and also Criteria Query.

  • @meklitameha3414
    @meklitameha3414 Год назад

    you are a lifesaver thank you others couldn't teach this in 3 hours and u did that in 48 min 🙌🙌

  • @toxi4202
    @toxi4202 11 месяцев назад +4

    Hey I really appreaciated the fact, that there was an error with the missing @Service parameter in the StudentServiceImplementation. So you explained what was wrong and didnt cut it out or something. Its good to see mistakes being made and how one resolves them.
    Dont always show perfect code examples. --> My opinion

  • @Error-rp4dk
    @Error-rp4dk Год назад +2

    Thank you for this great tutorial. Better than my professors and Uni course. Wish you health, happiness and personal and financial success 👍

  • @AtulSingh-vb6is
    @AtulSingh-vb6is 11 месяцев назад

    too smooth, loved it

  • @porzellanteller
    @porzellanteller 7 месяцев назад +1

    Gut gemacht danke.

  • @faizalkadiwal3065
    @faizalkadiwal3065 Год назад +2

    Thank for this great toturial🙌
    i like to add one thing just add students in [] braceses of useEffect so you dont have to refresh to show submited data
    const [students, setStudents] = useState([])
    useEffect(() => {
    },[students])

  • @KittyInCali
    @KittyInCali 10 месяцев назад +1

    awesome explanation in such simple words... great job man ...please keep up the work!

  • @barakamarkbright7940
    @barakamarkbright7940 Год назад +1

    Thanks for the video Arjun. It have given me a complete overview of web app development with Java.

  • @kelvinsankale
    @kelvinsankale 2 года назад +2

    Phewx! thank you very much for your commitment to share knowledge. God bless you.

  • @andersontiban5356
    @andersontiban5356 Год назад +1

    I learned a lot thank you!

  • @aldotube88
    @aldotube88 11 месяцев назад

    Do you have any particular reason for Maven over Gradle? I am still new to this but would you expect any issues following along if I choose Gradle as it's the current default on spring initializr?

  • @abhijeetrohilla3918
    @abhijeetrohilla3918 Год назад +1

    Great explanation , This channel is going to be more popular soon.

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      Thank you for your kind words. Keep supporting.❤️❤️

  • @anny88616
    @anny88616 2 года назад +2

    Thank you! This was really helpful! :)

  • @TEK293
    @TEK293 5 месяцев назад +2

    Great video. Thank you so much

  • @kimdequilla7503
    @kimdequilla7503 2 года назад +2

    thanks super fast but at the same time super clear

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Be sure to subscribe.

  • @pawebielecki7548
    @pawebielecki7548 11 месяцев назад +1

    Thank you. Your video was really helpful. Everything is really simple and step by step.

  • @serhatkral3871
    @serhatkral3871 Год назад +2

    thats great man i like it

  • @greptor8697
    @greptor8697 3 года назад +1

    Great Video. Keep up the work

  • @nz296
    @nz296 Год назад +1

    Perfect tutorial from the UK

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      Glad i could help. Be sure to subscribe.

    • @nz296
      @nz296 Год назад

      @@CodeWithArjun I’m subscribed
      Can you do a video, on how to submit values and check if it’s correct in the database
      Then give response

  • @tariqaldamen6837
    @tariqaldamen6837 2 года назад +1

    a very good and strong video to learn, I'm working for a big tech company and we are using the same as explained in this video.

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful! Be sure to subscribe.

  • @hotshotgolfer3079
    @hotshotgolfer3079 Год назад +1

    This was great. I learned a lot. Thank You.

  • @sebastianconde1341
    @sebastianconde1341 8 дней назад +1

    amazing tutorial! thanks a lot

  • @wagnerdba
    @wagnerdba 2 года назад +1

    Very nice... Congrats from Brazil...

  • @milankbudha
    @milankbudha 8 месяцев назад +5

    you should use lombok in model class to reduce boiler plate code for getters and setters,toString(),hashcode,default constructor and parameterized constructor

  • @michelpomerantzeff1749
    @michelpomerantzeff1749 Год назад +1

    Great content! 10/10!!!

  • @arthuritajahy5683
    @arthuritajahy5683 2 года назад +1

    Thanks, you are greatest teacher!!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      You are welcome! Be sure to subscribe.

  • @josephmctigue4494
    @josephmctigue4494 Год назад

    What versions of node, npx and mui are you using?
    I'm having trouble using node v18.16.0 and npx version 9.6.4 with this tutorial.
    Please help.

  • @user-ud1xy8bj8n
    @user-ud1xy8bj8n 10 месяцев назад +1

    Thank you very much for your help

  • @jonathankayizzi1241
    @jonathankayizzi1241 Год назад +1

    Awesome tutorial

  • @flavio5693
    @flavio5693 Год назад +1

    This course it's amazing thank you very much

  • @travahnetshisaulu3101
    @travahnetshisaulu3101 8 месяцев назад +1

    Thank you very much this was a perfect video

  • @tamimiqbalpython4849
    @tamimiqbalpython4849 Год назад +1

    Thank you, Dada. Sending love from Bangladesh 🌈🟩🔴🟩. Please give us more live projects like this.

    • @CodeWithArjun
      @CodeWithArjun  Год назад +1

      Thanks brother. I have got new series on fullstack on my channel check out that as well. Best wishes from Nepal 🇳🇵

    • @tamimiqbalpython4849
      @tamimiqbalpython4849 Год назад +1

      @@CodeWithArjun Dada i will see that Video series. My humble request to you if possible give us live a project about e-commerce web app by Spring boot and reactjs.

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      @@tamimiqbalpython4849 Sure i will plan soon on making a project.

  • @jerodcolbert3896
    @jerodcolbert3896 Год назад +1

    First Id like to say thank you for posting this it was very helpful. I do have one question though, when i do my post through postman the connection is successful but not all of the data I entered is being inserted into the table. Do you know why this could be happening?

  • @aimanyounis8387
    @aimanyounis8387 Год назад +1

    Awesome tutorial!

  • @2bpro275
    @2bpro275 Год назад +1

    It helps me a lot. Thanks for sharing.

  • @okage_
    @okage_ Год назад +1

    Thank you! Really good course

    • @CodeWithArjun
      @CodeWithArjun  Год назад +1

      Glad you like it! Check out the new course for CRUD operation using Spring Boot and React.

  • @samruddhimanded5301
    @samruddhimanded5301 2 года назад +1

    Thank You So Much ..Very Very Helpful

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful! Be sure to subscribe.

  • @karl-heinzpeters7283
    @karl-heinzpeters7283 2 года назад +1

    Great work! Thx.

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad you liked it! Be sure to subscribe.

  • @vaibhavtyagi5720
    @vaibhavtyagi5720 2 года назад

    Hey when i use text field component its showing code inside should i put container outside it or inside it ?

  • @rainertelesko9894
    @rainertelesko9894 2 года назад +2

    Great tutorial for beginners!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful! Be sure to subscribe.

  • @usage_sa
    @usage_sa Год назад +1

    Thank you so much!

  • @salvatorebarretta1410
    @salvatorebarretta1410 2 года назад

    amazing tutorial! the best sure!!!

  • @yuvakevichar
    @yuvakevichar Год назад +1

    Thank you, it helps very well 👍

  • @ares9335
    @ares9335 Год назад +1

    Great tutorial, appreciate it !

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      Glad it was helpful! Check out the new course on CRUD application.

    • @ares9335
      @ares9335 Год назад +1

      @@CodeWithArjun already added it to watch later, cheers.

  • @vipinsharma9767
    @vipinsharma9767 Год назад +1

    very informative video, great quality content bro

  • @rajeshrj2551
    @rajeshrj2551 3 года назад +4

    Awesome bro...thank you

    • @CodeWithArjun
      @CodeWithArjun  3 года назад +3

      Thanks. If you get any problem please let me know. Don't forget to subscribe.

  • @alifajrnugraat8136
    @alifajrnugraat8136 9 месяцев назад +1

    great thanks!

  • @UkrSerhiy1899
    @UkrSerhiy1899 2 года назад +1

    Thank you for yours great video!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad you liked it! Be sure to subscribe.

  • @rohans7194
    @rohans7194 11 месяцев назад +1

    Why did you refresh the app in the end to show Ram-India? You should show it when you submit it.
    Isn’t it better to get all the results as a response when we save a new entry?

  • @soubhagyarout1967
    @soubhagyarout1967 2 года назад +1

    Excellent !

  • @technicalresi5451
    @technicalresi5451 5 месяцев назад +1

    Thank you so much grate video sir wa 😊

  • @kunalshirsat4129
    @kunalshirsat4129 Год назад +3

    Hi
    while testing api on postman by POST method
    I m getting 400 errors not able to parse json object

  • @techniker8745
    @techniker8745 Год назад +1

    This helped a lot thank you

    • @CodeWithArjun
      @CodeWithArjun  Год назад +1

      Happiest to help. Be sure to subscribe.

  • @kevinsantana4188
    @kevinsantana4188 Месяц назад +1

    Thanks bro, great video

  • @juneldelacuadra5973
    @juneldelacuadra5973 Год назад +2

    Just Wow!!! Sir please create a blog using Spring Boot and React with login functions!

    • @CodeWithArjun
      @CodeWithArjun  Год назад +1

      Thanks for the idea! Surely. Don't forget checkout the new series of full stack CRUD app.

    • @juneldelacuadra5973
      @juneldelacuadra5973 Год назад +1

      @@CodeWithArjun Yes I will... Thank you so much again sir.

  • @dnyaneshwarkolhe9959
    @dnyaneshwarkolhe9959 Год назад +1

    can we create frontend backend combined windows executable file which will run whole application at once.

  • @sandeshwise
    @sandeshwise Год назад +1

    Thanks you, nice video good explanation

  • @jyotsnapnr
    @jyotsnapnr 2 года назад +1

    subscribed, you teach so well

    • @CodeWithArjun
      @CodeWithArjun  2 года назад +1

      Glad it was helpful. Thanks for your words.

  • @Justin-xy2ko
    @Justin-xy2ko Год назад +2

    legendary tutorial

    • @CodeWithArjun
      @CodeWithArjun  Год назад +1

      Glad you liked it. I have got new series on full stack CRUD check out on channel.

  • @DevLearn-lv7nr
    @DevLearn-lv7nr Год назад +1

    thanks Arjun did you ever code something similar in non Java language or frameworks ? if so what did you use and how did you find it compared to Springboot and java ?

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      I haven’t used any other frameworks but you can use node js if you want to learn

  • @souvik5560
    @souvik5560 2 года назад +3

    Fantastic 👍
    Very simple and crisp

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad you liked it. Be sure to subscribe

  • @rachanajakapure3661
    @rachanajakapure3661 9 месяцев назад

    Hi arjun sir i am getting 401 as unauthorised to access error i am using jwt security in my application i am confused about xhamp how to use that? Please help..

  • @pedrorego1443
    @pedrorego1443 2 года назад +1

    best video ever! now jsut gotta figure how to deploy online

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Thank you so much. Glad you liked it. Be sure to subscribe.

    • @CodeWithArjun
      @CodeWithArjun  2 года назад +1

      My next video will be on that how to deploy Spring boot app and react app on Heroku. If you want to deploy using netlify for just react app i have got one video you can check on my channel.

    • @thegabriel475
      @thegabriel475 2 года назад +1

      @@CodeWithArjun I am looking forward to the next one, btw your videos are awesome

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      @@thegabriel475 I have published for front end with backend i haven't i hope i can soon.

  • @romeezhou693
    @romeezhou693 29 дней назад

    hi! thank you for the video! I got the following error when I accomplished the very first part and run the application. Do you know how to solve it?
    java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)" because the return value of "org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.sqlExceptionHelper()" is null

  • @WandersonEndeolver
    @WandersonEndeolver Год назад

    Sabe me informa se no Windows tenho que usar é este comendo: .\mvnw.cmd spring-boot:run

  • @kooxaldoxt5162
    @kooxaldoxt5162 Месяц назад

    Cant we just html,css,js for frontend and postgrace database?

  • @venkat757
    @venkat757 Год назад +1

    Thank you very much. ❤

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      You are so welcome. Be sure to subscribe.

  • @SayujyaShibin
    @SayujyaShibin 2 года назад +1

    Good work...keep going

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful, Be sure to subscribe.

  • @Learco
    @Learco Год назад

    Hi, I don’t get how the ract app connects to the back end (springboot )

  • @hrobesak
    @hrobesak Год назад

    What a great tutorial. Just one question. I'm getting empty Id when I call getAll. Name and Address is displayed, but Id not. In DB all Id's are visible. Any ideas?

  • @mathewgarzon2339
    @mathewgarzon2339 2 месяца назад

    Sir, hello, how do i export both frontend and backend, for it to work in different pc's

  • @belogical9879
    @belogical9879 Год назад +1

    Thanks a lot bro :)

  • @technocoh
    @technocoh 2 года назад +2

    Amazing tutorial, helped so much, thank you a lot! :D

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Don't forget to subscribe.

    • @technocoh
      @technocoh 2 года назад +1

      @@CodeWithArjun now when i watched the 2nd part of the video i have a question: now you have 2 different apps on different ports: studentsystem and studentfrontend, but how do you make Spring Boot deliver React from same port. Do you also have a tutorial for this?

    • @technocoh
      @technocoh 2 года назад +1

      got it, maven-resources-plugin ;)

  • @akshayram14
    @akshayram14 Год назад +1

    Thank you!

  • @nandhureddy27
    @nandhureddy27 2 года назад +2

    helped a lot

  • @-Laxman-ks9ri
    @-Laxman-ks9ri Год назад +3

    can you make a video on how to deploy this backend and database in render and react app in vercel

  • @joshuamarrero6563
    @joshuamarrero6563 2 года назад +1

    THANK YOU!!!!

  • @victorcamargo784
    @victorcamargo784 Год назад +2

    I was having the error "java.sql.SQLException: Access denied for user Victor@localhost (using password: NO)" in the 12:24 of the video trying to run the application. I fixed it by creating an user with this name in the admin panel

  • @gamingflick
    @gamingflick Год назад

    we need to use the not video material ui we need to use the lastest one

  • @viraltiktoks9960
    @viraltiktoks9960 Год назад

    Hola amigo, sabes como puedo agregar imagen a cada usuario? o tienes algún video explicándolo, gracias

  • @chadlilaila5896
    @chadlilaila5896 10 месяцев назад +1

    thank you so much

  • @John-uv1qw
    @John-uv1qw Год назад +1

    thanks

  • @mohammedabulawi8006
    @mohammedabulawi8006 Год назад

    great Can you make a video of how to create a login page

  • @saurabhgandhi7982
    @saurabhgandhi7982 Год назад +3

    Awesome tutorial, keep up the good work

  • @dineshpanigrahi1065
    @dineshpanigrahi1065 Год назад +1

    Can you pls let me know what are the combination of techstacks are adapted by most enterprises(Java with Angular or Java with React), bcoz am preparing for Java with react

    • @Channel-iu6de
      @Channel-iu6de Год назад

      I would learn Java with react, python, gitlab, github, spring boot, docker, kubernetes,sql.

  • @geminicoding5924
    @geminicoding5924 2 года назад

    Thanks so much for the video. This is really helpful

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful! Be sure to subscribe.

  • @swaranjali433
    @swaranjali433 Год назад +1

    I'm sorry it was a bit confusing! I promise that if you take your ti over the next few days and weeks, tNice tutorials stuff will make sense. Most

  • @usmannurudeen1625
    @usmannurudeen1625 5 месяцев назад +2

    How can we make this kind of application live for users to access since the backend and the sever is on the local machine?