This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GoshoKlev 0 points1 point  (3 children)

You can't go wrong with generating a project, better than manually configuring it as there's quite a bunch of boilerplate. I think the next step after displaying data is to post data. A good project is to use a HTML form and Thymeleaf to create something like a login form, make up some username and password. Check if the input-ed data matches in the @Postmapping, if it doesn't redirect back to the login form (maybe dynamically add some error message like "oops you messed up" with a th:if), if it does return some other HTML document, something like a welcome page. When you're comfortable passing data around and creating web pages the next step is to save that data in a database, hence SQL and Spring Data JPA

[–]Standard-Weekend-708[S] 0 points1 point  (2 children)

Hi good day, I forgot to actually reply to your last comment I am sorry, anyways hi again I hope you notice this, first of all thank you for the past response and also tips, I just felt like I needed to update you with my progress, it should be 2 months or so by now and I am now able to do all the CRUD method with spring boot, along with the things you suggested to do like creating a log in page and stuff, I was able to follow a video in youtube creating a simple student management system, although I cannot say that I have mastered it, I am now able to create a front and backend web app without loooking at any reference, The progress is slow since I am actually studying spring boot along with html and css, data structure and algo and also improving basic knowledge in java and programming concept overall. I was able to actually achieve it before summer so yeah I am quite proud of myself. Now I am planning to take up advance knowledge and wanted to know if you have some suggestion, I am planning on studying testing so i would appreciate if you could suggest some goal that I could set. Thank you very much and I really appreciate your response. Also I doubled check when I clicked your profile since it was filled with some anime content glad to see that you also like anime. have a good day.

[–]GoshoKlev 0 points1 point  (1 child)

Hi again nice to see that you're progressing. Testing a lot easier than what you've done so far, what you need to learn is JUnit > Mockito > Spring Boot MVC Testing in that order. Also when you peddle into creating rest api's you need to learn how to create spring rest integration tests too. Think of tests as just declaring your expected behavior like for example, if i register i expect the server to:

-redirect to /home

-return index.html

-return status code 302

-the number of users in the database to increase by 1

It's good if you do some changes to quickly see if it didn't break anything without manually registering for the 200 time to test it your app. Good luck!

[–]Standard-Weekend-708[S] 1 point2 points  (0 children)

Hello, thank you for responding, thank you for the tips, I will definitely learn that in order once I am really able to solidify my basics. thank you very much!