MongoDB + Spring Boot 3 | Crash Course



MongoDB + Spring Boot 3 | Crash Course

MongoDB + Spring Boot 3 | Crash Course

#spring #learning #springboot #springtutorial #springsecurity #developpement #java #arraylist #linkedlist #springdatajpa #querybuilder #aliboucoding #alibou #validation #mongodb #springboot_3

In this crash course, you will learn how to build high-performance web applications using Spring Boot 3.0 and MongoDB.
We’ll start by discussing the key concepts of Spring Boot, including the basics of dependency injection, configuration, and testing.
Then, we’ll dive into MongoDB and explore its powerful features for data modeling, querying, and indexing.
Along the way, we’ll also cover best practices for optimizing the performance of your Spring Boot and MongoDB applications.
By the end of this course, you will have a solid understanding of how to use these technologies together to create powerful, scalable, and maintainable web applications.

Don’t Forget to
===========================================
💯 Free courses here: https://aliboucoding.com
💯 Subscribe to the youtube channel
💯 Join our Discord Community – https://discord.gg/Ded93eKfAB
💯 Join our Facebook Group – https://www.facebook.com/groups/589612651142975
💯 Join our Instagram: https://www.instagram.com/alibou_coding/

Table of content
00:00 Intro
02:01 What is mongoDB
03:54 The difference between SQL and NoSQL databases
06:28 How to choose between SQL and NoSQL databases
10:15 MongoDB UI tools
11:25 Why using docker for development
12:54 Create an empty docker compose file
14:25 Mongo server (docker compose)
18:46 Mongo express (docker compose)
21:42 Run docker compose and test
25:07 Collections and documents
28:14 Create a new spring project
31:56 Project structure
34:08 Include docker compose file into the project
37:38 Project architecture
41:10 Connect to MongoDB
44:34 Create a new database
45:57 Explain ADMIN, CONFIG and LOCAL databases
50:46 Create Java class
54:23 Transform the Java class to a collection
56:47 Create the mongo repository
59:01 Insert the first data into collection
01:04:48 Create the product service
01:06:48 Save the product
01:11:36 Find product by ID
01:12:25 Find all products
01:12:45 Delete products
01:13:13 CRUD – Create product controller
01:15:14 CRUD – Save product
01:16:51 CRUD – Find all products
01:17:48 CRUD – Find by ID
01:19:16 CRUD – Delete product
01:20:50 CRUD – Test operations
01:27:06 Extend the product model
01:29:47 Create Category java class
01:31:33 Use category as a field
01:34:09 Relationship between Product and category
01:35:16 Transform Category to a collection
01:36:11 Create a category repository
01:36:57 Insert categories at startup
01:38:51 The issue in linking collections
01:42:08 Add relation between collections
01:45:47 Add OpenApi dependency
01:47:33 Test and play with swagger UI
01:53:40 Continue learning

Comments are closed.