May 14, 2020

Reddit Clone with Spring Boot and Angular

In this series of tutorials, we are going to build a Reddit Clone application with Spring boot and Angular.

We will be using Java 8, Spring Boot, Spring Security, Spring Data JPA, MySQL on the back-end side and on the front end we will be using Angular 9 and Bootstrap 4.

Also, we will be using Token Based Authentication in the form of JSON Web Tokens (JWT).

The main idea of this series of tutorials is to show how to use these technologies to build a simple web application.

Source code


The source code of this project, is hosted on Github –
Backend – https://github.com/SaiUpadhyayula/spring-reddit-clone
Frontend – https://github.com/SaiUpadhyayula/angular-reddit-clone

If you like this kind of tutorials, then besure to check my other tutorial series on how to build a blog using Spring boot and Angular here:
https://programmingtechie.com/2019/03/17/how-to-build-a-simple-blog-application-using-spring-boot-and-angular/

Pre-requisites:

As this is a practical tutorial series, it is recommended to have basic understanding of below technologies.

  • Spring Framework and Spring Boot
  • Angular
  • Spring MVC
  • Spring Security

I will be writing blog posts explaining you step by step how to create this Reddit Clone application. If you are a visual learner like me, you can have a look at the video tutorials inside each blog post.

You can also have a look at the complete Video Tutorial Playlist below:

About the author 

Sai Upadhyayula

  1. This is awesome! Thank you for the tutorial. Can you please do another project with Spring but with ReactJS?

    1. Hey Abhilash,

      Sure yes I have that in my plans, right now I am working on a Microservices project tutorial, I will try to add a ReactJS frontend to that, or else I will cover in the next series.

      Please do subscribe to the newsletter and YT channel to get updates on my tutorials. 🙂

      Cheers

  2. wow it is the best tutorial I have done, thank you very much for sharing, in the part of the angular interceptor I had some doubts, in java I understood almost everything, the security issue I lost a bit at the end when you added the subreddits routes , post to .antMatchers, I had a lot of fun doing this tutorial, I would like to implement that logic to reverse engineer other applications and build them and then create my own after learning enough I currently work as a junior dev I hope, greetings from santiago de chile 😀

    1. Hey,

      Glad, you liked it. You can drop me an email if you have any doubts. Happy to help you.

      Cheers

  3. I followed this tutorial all along but still getting CORS issue. Will be happy to get a help

    1. Hi,

      Please make sure that you have the same code inside the SecurityConfig.java and WebConfig.java classes.

      https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/java/com/programming/techie/springredditclone/config/SecurityConfig.java
      https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/java/com/programming/techie/springredditclone/config/WebConfig.java

      The CORS error occurs, due to misconfiguration in these classes. If it still persists, please upload your source code to github and provide me the link, I will check it out.

      Cheers

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe now to get the latest updates!