Spring Boot And Angular Tutorial – Build Reddit Clone – In this series of tutorials will see how to build Reddit Clone Using Spring Boot and Angular. We will be using Spring Boot, Spring MVC, Spring Security with JWT Authentication, Spring Data JPA with MySQL and Angular 9 to build this application.
First we are going to build the backend and then building frontend. So go to start.spring.io website, this is the place where will generate our project and required dependencies. In this project we are adding Spring Web Library, will be add very useful library called Lombok. This helps to reduce boilerplate code. And next thing is we need to add Spring Security, Spring Data JPA, MySQL Driver and lastly Java Mail Sender. Click on Generate.
Lets unzip the project and open in your favourite IDE. I will be using IntelliJ IDEA for Spring – for the backend of this project and Visual Studio Code for Angular – Front end of the project. The first step is to create a domain entities for our project. So lets expand package structure to the root package and inside this package, I already created 2 packages – model and repository.
The first step is to create a domain entities for our project. So lets expand package structure to the root package and inside this package, I already created 2 packages – model and repository. Inside the model we have all the domain entities. The entities are Post, Comment, Notification Email, User, Verification Token, Vote and Vote Type.