Full Stack Reddit Clone with Springboot & Angular: Part 1

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 110

  • @premk191
    @premk191 Před 4 lety +3

    This is the best video I found on Internet. Thanks man. Please keep uploading such amazing videos.

  • @rezznov98
    @rezznov98 Před 4 lety +1

    I watched your spring blog tutorial. it was awesome and smooth. now I want to start watching and coding with this tutorial very interestingly.

  • @devenderchohan535
    @devenderchohan535 Před 4 lety +1

    the content and way of presenting is too good.
    the channel is underrated and not reaching masses
    keep up the good work

  • @jayjethva786
    @jayjethva786 Před 4 lety +3

    Loved your videos thanks for sharing Lots of knowledge we can't find in other tutorial your tutorials are really worth it the time

  • @ozodbekxomidbekov8320
    @ozodbekxomidbekov8320 Před 2 lety +1

    Thanks for the great tutorial. Your teaching style is awesome

  • @ygt3005
    @ygt3005 Před 4 lety +1

    Really good project and this guy have good programming skills and nice education. Thanks!

  • @prakasharyal4048
    @prakasharyal4048 Před rokem +1

    Wow very good contents, View Count and sub count for your channel are criminally low, all the best

  • @ashishchoudhary9824
    @ashishchoudhary9824 Před 4 lety

    Thanks for the uploading this tutorial...Keep uploading the more videos.

  • @youssifessam8125
    @youssifessam8125 Před 4 lety

    WOW ... please keep make tutorial like this ... it's amazing tutorial

  • @pranavmahajan4190
    @pranavmahajan4190 Před 2 lety +1

    Your tutorials are awesome. Do you have detailed video on unit testing using Mockito?

  • @TheKok617
    @TheKok617 Před 4 lety

    really good project! thank you!

  • @ProgrammingTechie
    @ProgrammingTechie  Před 3 lety

    Hey guys, at czcams.com/video/7PsjGI-88sc/video.html the property spring.datasource.initialize property is Deprecated with latest Spring Boot Releases, so use the property spring.datasource.initialization-mode=always as a replacement for that property

  • @kaname223
    @kaname223 Před 2 lety

    This is excellent is so hard finding rich content in CZcams that guide intermediate learners, what is the best way to use these tutorials, is it by cloning both the front /backend? or watch your video and code along with you?
    Im trying to figure out the best way to take advantage of this great opportunity and learn as much as I can , Big thank you

  • @shreerai3124
    @shreerai3124 Před 3 lety

    I have noticed that you have not impl class of service, does it affect us anyway if we implement using the interface?

  • @veteran8278
    @veteran8278 Před 4 lety

    Why do you use One To Many relationship which create third table?

  • @mwdubinz
    @mwdubinz Před 4 lety +1

    The annotation @NotBlank is deprecated and I cannot get it working nor find alternatives. I've tried both imports: import javax.validation.constraints.NotBlank like you have and import org.hibernate.validator.constraints.NotBlank; The example SpringBoot version used is 2.1.9 and I am using 2.3.1. Please advise, thanks.

    • @toss5337
      @toss5337 Před 4 lety +1

      search for javax validation dependency in mvn repository. try thi s
      javax.validation
      validation-api
      2.0.1.Final
      and also look at this stackoverflow.com/questions/50017134/javax-validation-notblank-missing-validator

    • @fullslackdev
      @fullslackdev Před 3 lety +1

      Teguh Pratama is correct, however it's better to use the dependency provided by Spring instead of using the javax validation library.
      org.springframework.boot
      spring-boot-starter-validation

  • @rronche55
    @rronche55 Před 4 lety +1

    Cannot resolve column 'userId' , Cannot resolve column 'id' in @JoinColumn. I tried everything, and there is no way to fix this. Any suggestion ?

    • @walid373
      @walid373 Před 4 lety

      Post your code in github, I'll take a look

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      @@walid373 Really appreciate that you are taking initiative to help others :)

  • @bobocrazvan-marius801
    @bobocrazvan-marius801 Před 3 lety +1

    Please also provide in your github repository for the springboot project guidance on how to set it up and run.

  • @kyakaisefacts2760
    @kyakaisefacts2760 Před 3 lety

    Your tutorials is very helpful for me but I cannot see tables in my database what problems I have facing I don't know because I am beginners and I want to know how to solve this problem

  • @ericchua3492
    @ericchua3492 Před 4 lety

    really good :) when will be the next part 4?
    I am new to spring boot 2.. but it seems that i need to manually setup user registrations etc. Does spring ecosystem has something similar to Laravel or Rails where most stuffs are in place. I tried JHipster 6, quite bulky.

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Hi, there is nothing official from Spring but there are some libraries like Okta, Auth0 which you can use. An open-source alternative for these would be Keycloak. Check them out :)

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Part 4 will be out soon in a couple of days, I am still recording the video.

  • @kyakaisefacts2760
    @kyakaisefacts2760 Před 3 lety

    When I sending request for sign up then show me error unauthorised

  • @TheAlvipl
    @TheAlvipl Před 3 lety +1

    Do you use design patterns in job ? For example CQRS, DDD

  • @Daniel-ve8yr
    @Daniel-ve8yr Před 4 lety

    How did you avoid the CORs problem? I am locally running both the front end and the backend, but I get "Access to XMLHttpRequest at 'localhost:8080/api/auth/signup' from origin 'localhost:4200' has been blocked by CORS policy:" when I try to log in.

  • @hippiestafarii
    @hippiestafarii Před 3 lety

    Hello.
    Thank you very much I learned a lot.
    Wonderfull work -)

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety +1

      Thank you. Glad it was helpful!

    • @hippiestafarii
      @hippiestafarii Před 3 lety

      @@ProgrammingTechie Yes it was thanks again ... waiting for the next about testing ... very useful :-)

  • @imadbourouche4828
    @imadbourouche4828 Před 3 lety

    u are the best good job

  • @rohitnain1990
    @rohitnain1990 Před 2 lety

    Sir how to create the jks file and how it is related to our code.

  • @natetolbert3671
    @natetolbert3671 Před 4 lety

    Also, could we not use boolean for vote type instead of enum.

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Hey Nate, for sure we can, I just followed the approach which came to my mind when trying to write code for the tutorial. :)

  • @ericchua3492
    @ericchua3492 Před 4 lety

    This has been deprecated in Spring Boot 2.2.5 -> spring.datasource.initialize=true .. so what replacement should I use?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Hey thanks for pointing it out, will check and reply you soon

    • @budthapa
      @budthapa Před 4 lety

      Use 'always' without quotes if you want to always initialize the datasource. docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/jdbc/DataSourceInitializationMode.html

  • @Dineshkumar-ou5bj
    @Dineshkumar-ou5bj Před 4 lety

    Good Work. I have one problem with creating tables, It seems like the table is not created when I run the application.
    Note: I have created schema already

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Hi
      Do you see any error, make sure you have the property
      Spring.jpa.hibernate.ddl-auto as created (or) updated
      www.github.com/SaiUpadhyayula/spring-reddit-clone/tree/master/src%2Fmain%2Fresources%2Fapplication.properties

    • @Dineshkumar-ou5bj
      @Dineshkumar-ou5bj Před 4 lety +1

      @@ProgrammingTechie Hi Thanks , it worked

    • @murtazahaji1291
      @murtazahaji1291 Před 3 lety

      Did you only create schema , or you added tables also?

  • @josuebarros-desenvolvedorw2490

    Does still work on May 2022?

  • @augustoalmeida2586
    @augustoalmeida2586 Před 3 lety

    Im a lil lost on how to due the data base. any change you would a tutorial about that or may point in the right directiopn?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety +1

      hi could you elaborate what issue you are facing ? DB setup is straight forward, all the tables will be automatically created by hibernate at the time of application startup.

    • @augustoalmeida2586
      @augustoalmeida2586 Před 3 lety

      @@ProgrammingTechie thank you for ur answer it took me a lil to realized that. First time working with Hibernate. Great tutorial!!

  • @MichaelAMomo
    @MichaelAMomo Před 4 lety

    what is the database structure like ?
    and it keeps telling me that (Many To One' attribute type should not be 'User' ) in every entity that has a User table link to it.
    could you please help with that

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      I attached added the ER diagram for the DB Structure inside the blog post.
      programmingtechie.com/2019/09/30/build-a-full-stack-reddit-clone-with-spring-boot-and-angular-part-1/
      You can find it under section - "Database Schema Diagram"
      I Hope it helps.

    • @MichaelAMomo
      @MichaelAMomo Před 4 lety

      thank you so much

    • @MichaelAMomo
      @MichaelAMomo Před 4 lety

      Im getting this error when i try to run it .
      [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.5.RELEASE:run (default-cli) on project repostit: Application finished with exit code: 1 -> [Help 1]

  • @CuongPham-ci4ie
    @CuongPham-ci4ie Před 2 lety

    At 6:37 i want to add tag in Post Model like
    private List tags ;
    Like your's youtube-master. But i got the problem
    Could not determine type for: java.util.List, at table: post, for columns: [org.hibernate.mapping.Column(tags)]
    Please help me sir

    • @CuongPham-ci4ie
      @CuongPham-ci4ie Před 2 lety

      i just add @ElementCollection on top and it working!!

  • @SiddharthAwana10
    @SiddharthAwana10 Před 4 lety

    Hello! why do you use two different IDEs? Why not create all of the project using VS Code?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety +1

      Hi, I like Intellij more than VS Code 🙂
      If possible I would have also moved the frontend part to Intellij (webstorm) but I don't have license for it.
      I use Intellij in my day to day work and I am so used to that controls and shortcuts 🙂

    • @SiddharthAwana10
      @SiddharthAwana10 Před 4 lety

      @@ProgrammingTechie Thanks for the reply!
      Also What's the Run/Debug Configuration? Mine just shows add configuration when I open the project so I can't run the project. Seeing the icon in the top right corner in the video I figured that it is maybe an Application Run/Debug configuration but can't seem to set it up correctly and couldn't find the appropriate setting online.

    • @SiddharthAwana10
      @SiddharthAwana10 Před 4 lety

      Fixed the configuration issue by deleting all the files and then starting fresh. IntelliJ asks when we first start the project if the project is eclipse or maven, I mistakenly clicked okay on eclipse without noticing which created this issue. Incase someone else might have the same issue.

  • @hhah4254
    @hhah4254 Před 3 lety

    why we did not use @repository annotation in repositories?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety

      it is not always mandatory, as we are extending the JpaRepository interface from Spring Data, Spring Framework will automatically detect the repository class and add the beans to the spring context.

  • @umeshkhatiwada4635
    @umeshkhatiwada4635 Před 4 lety

    Hello can you do a project with spring framework at backend and plain html and css at frontend?
    I haven't learned Angular so it is hard to follow along
    It would be great help!

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety +2

      Hi, Thanks for the input, I am right now not able to produce any videos for another 1-month minimum.
      After that, I am planning to do a Spring MVC Tutorial where we can build a Recipe Book application using Spring MVC and Thymeleaf Templates in the frontend.
      Please do subscribe to the channel to get notified for these videos :)

  • @DeepanshuGabba
    @DeepanshuGabba Před 3 lety

    I followed this tutorial and in the end, when I launched "localhost:8080" , it is redirecting to "localhost:8080/login" and is showing the login page. I'm wondering from where does it arrive. Can you please tell me what's happening here?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety +1

      This is expected, make sure that the tables are created successfully in the database and follow the next part.
      The login page you are seeing is the default security settings from Spring Security.
      In the next part we will change this configuration to make it fit for our application.

    • @DeepanshuGabba
      @DeepanshuGabba Před 3 lety

      @@ProgrammingTechie I'm a newbie in Database field. Although I successfully created the schema as you suggested in MYSQL WORKBENCH. But I can't see the tables in the "spring-reddit-clone" schema, even after clicking on "Refresh All" in the context menu, which appears by right clicking on schema. Can you please suggest what should I do to see the tables? Also, I've used the exact same properties (except my own DB username and password) in application.properties file whch is present on your github link.

    • @DeepanshuGabba
      @DeepanshuGabba Před 3 lety

      I got the error. Location of Model and repository folder was incorrect

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety +1

      ​@@DeepanshuGabba If you are able to start the application after creating the classes inside the model and repository package and setting the application.properties, then you should see the tables created automatically inside the schema.

    • @DeepanshuGabba
      @DeepanshuGabba Před 3 lety

      @@ProgrammingTechie yeah thanks

  • @GajananaGanjigatti
    @GajananaGanjigatti Před 3 lety

    5:19 @NotBlank not working

  • @denisluke7191
    @denisluke7191 Před 3 lety

    I used to have the following error :
    org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL ...
    Basically, Hibernate couldn't create any tables.
    In application.properties I changed
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
    to
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect

  • @toss5337
    @toss5337 Před 4 lety

    Thanks a lot, you are the best, please keep going to make tutorial like this

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety +1

      Hey Thank you, I will try my best. Right now I am unable to produce any videos for min 1 month. Will start producing videos after this period :)

    • @toss5337
      @toss5337 Před 4 lety

      yeah, no problem, Im sure Spring and Angular is a big enough tutorial, and you spent a lot of time doing it. really appreciate to you..

  • @tamangngoc5824
    @tamangngoc5824 Před 3 lety

    Why don't we use @ManyToMany relationship for SubReddit and User? Thanks :v

  • @misterj2074
    @misterj2074 Před 4 lety

    Nice. Where can I find SQL script for database?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety +1

      The tables are generated automatically at the time of app startup so there is no need of sql script. You just have to create the schema before starting the application

  • @keshfreestyl8716
    @keshfreestyl8716 Před 4 lety

    Where can I find the sql script?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Hi you don't need sql script, the tables will be created automatically when you start the application.

  • @sajoshaji6639
    @sajoshaji6639 Před 3 lety

    hey bro why we use @ManyToOne & OnetoMany relationship

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety +1

      Hard to answer this in a comment, you cab read this tutorial for more information on this: www.baeldung.com/hibernate-one-to-many

  • @easonjiang3150
    @easonjiang3150 Před 4 lety

    Is this Java 8 or other versions of Java?

  • @natetolbert3671
    @natetolbert3671 Před 4 lety

    Get rid of User.userId and make User.username the PK.

  • @kyakaisefacts2760
    @kyakaisefacts2760 Před 3 lety

    Please do help me

  • @rajubhattarai3326
    @rajubhattarai3326 Před 3 lety

    is this same from freecodecamp.org

  • @kavitamagadumm7437
    @kavitamagadumm7437 Před 4 lety

    Can i get the source code

    • @ProgrammingTechie
      @ProgrammingTechie  Před 4 lety

      Please check the first Link in the description section. You can find link to github inside the blog post

  • @faresgeek-dz5692
    @faresgeek-dz5692 Před 4 lety

    😭😭😭 i really hope that was with Django + angular

  • @GoogleUser-is9zj
    @GoogleUser-is9zj Před 3 lety

    When I am sending localhost:8080/api/auth/signup , I am getting 500 Internal server error :( It's been a week I am struggling. Can anyone help me with that ? Anyone had the same issue ?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety +1

      What's the error you see in the stack trace ? We cannot help you without any details 🙂

    • @GoogleUser-is9zj
      @GoogleUser-is9zj Před 3 lety

      @@ProgrammingTechie {
      "timestamp": "2021-03-24T15:41:05.512+00:00",
      "status": 500,
      "error": "Internal Server Error",
      "message": "",
      "path": "/api/auth/signup"
      }

    • @GoogleUser-is9zj
      @GoogleUser-is9zj Před 3 lety

      @@ProgrammingTechie When I am debugging signup method in controller by putting breakpoint in authService.signup(registerRequest); I am getting this message : com.mirjalolcode.springredditclone.exceptions.SpringRedditException: Exception occurred when sending mailtest1@gmail.com

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 lety

      @@GoogleUser-is9zj this is not complete information, can you paste the complete stacktrace in pastebin and send me the link ? Also send me the github link of your source code.

    • @GoogleUser-is9zj
      @GoogleUser-is9zj Před 3 lety +1

      @@ProgrammingTechie Hey ! Thank you , I solved it by changing port from 25 to 2525!