we will talk about how we will go on in this course.
Also we talk about project structure that will be implemented in this course.
We will create a new project in this course.
And we will implement this project using Spring Boot and MongoDB.
In our project, we will implement CRUD operations. And these CRUD operations will be requested from Postman.
Then these requests will be handled from Spring Boot.
Our project will be User Orders Application.
Our main operations will be saveUser, saveOrder, filterUsers and groupUsers.
We will have two main components to implement our project.
These are server side and client side.
In Server Side:
Spring Boot will be the main thing.
Model View Controller structure will be implemented using Spring Boot.
Our MVC structure will work like that:
First of all, the entity classes will be created under the model package.
Later, if model class is permanent, we will create a repository for it.
Then we will call the repositories from services.
Finally, we will call services from controllers.
In Spring Boot, Data will be presented to clients as an API call so Spring Rest Controller will be used to handle it.
We will use MongoDB as Database.
We will see the basic operations in MongoDB. Like Create, update, select and aggregation operations.
We will talk about database – schema relation.
We will talk about how we can handle auto_increment on MongoDB.
We will also use Object Relational Mapping with Java Persistence API.
We will use Mongo Repository and Crud Repository in Spring Boot.
So these repository templates will handle common database operations like save, update, find, delete.
With Spring Boot, we will also use Lombok library for clean code.
You know that we don’t want to implement getter, setter, equals and hashcode. So we can escape it using Lombok @Data or @Value annotation.
We will use Gradle To handle all dependencies on the server side.
That’s all about Server side.
Let’s talk about the Client Side.
We will create endpoints with Spring boot.
And on the Client Side, we will test these endpoints with Postman.
With Postman, we will also handle Authorization and basic Http methods.
Who this course is for:
- All developers curious about mongoDB
- Basic Java Knowledge
Last Updated 1/2021