SaiUpadhyayula / spring-reddit-clone

Reddit clone built using Spring Boot, Spring Security with JWT Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone
658 stars 386 forks source link

How to make this in MongoDB instead of MySQL ? #34

Closed Raghav-byte closed 1 year ago

Raghav-byte commented 2 years ago

I was trying to make a database in MySQL but it was showing different errors every time. I have experience in MongoDB so I was thinking of making this in Mongo only instead of MYSQL, can someone guide me on how to do that !! Thanks in advance

spencerlepine commented 1 year ago

@Raghav-byte since MongoDB isn't a relational database, it would be a completely different way to structure the data. You would not be able to do JOIN queries.

If you are sticking to NoSQL, you could check out a Digital Ocean tutorial

or Spring Boot, MongoDB: JWT Authentication with Spring Security article + GitHub Repository