Spring Boot Microservices with MongoDB | Step by Step Guide with Java Example

Опубликовано: 29 Сентябрь 2024
на канале: codeonedigest
208
6

Watch full version video to learn how to pull mongodb image from dockerhub repository, how to run mongodb in docker container, how to connect Spring Boot Microservice Application with the mongodb running in a docker container and testing the GET and POST end-points of the microservices to pull and push customer data.

MongoDB, the most popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘non-relational’. It means that MongoDB isn’t based on the table-like relational database structure but provides an altogether different mechanism for the storage and retrieval of data.
MongoDB Compass is a powerful GUI for querying, aggregating, and analyzing your MongoDB data in a visual environment. Compass is free to use and can be run on macOS, Windows, and Linux.

Postman Api Testing Tool: Postman is a tool used for API testing. It is an HTTP client that tests HTTP requests, utilizing a graphical user interface, through which we obtain different types of responses that need to be subsequently validated.

** TOPIC TO COVER **
1. Introduction Spring Boot Microservice and MongoDB Docker Image
2. Pull MongoDB Image from DockerHub
3. Start MongoDB in Docker Container
4. Connect MongoDB Compass GUI to MongoDB running in container
5. Create Database and Collection in MongoDB
6. Insert Data in MongoDB
7. Add Maven Dependency in POM xml for MongoDB
8. Write Code for Repository Layer, Business Layer
9. Write Code for GET and POST rest api call in Rest Controller
10. Build and Run Spring Boot Microservice Application
11. Test GET and POST end points in Postman tool
12. Validate the read and write operation in MongoDB
13. Summary

#mongodbincontainer #springboot #microservice

** CodeOneDigest GitHub Repository **
https://github.com/codeonedigest/
https://github.com/codeonedigest/spri...

** Tools **
DockerHub: https://hub.docker.com/_/mongo
Download MongoDB Compass: https://www.mongodb.com/try/download/...
Spring Project Initializer: https://start.spring.io/
Postman: https://www.postman.com/downloads/

** CHECK OUT OUR OTHER VIDEOS **
Spring boot Microservice Project with MongoDB in Docker Container    • Spring Boot Microservice Project with...  

Spring boot project setup:    • Spring boot Project Step by Step Tuto...  
Spring Boot Scheduler:    • This Spring Boot Scheduler Tutorial S...  
Spring Boot Cron Job:    • How to set up a Spring Boot Cron Expr...  
Spring Boot Microservice with MongoDB Project:    • Spring Boot Microservice Project with...  
Prepare Docker file, Container and Build Image:    • Docker Tutorial for Beginners | Creat...  
Run Docker Image on Custom Port:    • Docker Container Port Mapping Tutoria...  
Tag Docker Image and Push to Docker Hub Repository:    • Docker Tag and Push Image to Hub Regi...  
Deploy Docker Image AWS Elastic Container Service:    • Deploy Springboot Microservice Docker...  
Run MongoDB in Docker Container:    • Run MongoDB Image in Docker Container...  

** CHECK OUR PLAYLISTS **
Spring Boot Complete Tutorial    • Spring Boot Tutorial with Project Set...  
Docker Containers Complete Tutorial
   • Cloud & Container Tutorial with AWS C...  

GITHUB Repository Tutorial | Complete Guide to GITHUB for Beginners
   • GITHUB Repository Tutorial | Complete...  
Java Design Pattern Complete Tutorial    • Java Design Patterns for Student | Ga...  
How to do guide for Beginners
   • How to do Tutorials for Beginners - #...  
Http Methods & Http Status Codes
   • Ultimate Guide to HTTP Methods and HT...  

** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.
Check out our channel here:
   / @codeonedigest  
Don’t forget to subscribe!

** OUR WEBSITE **
https://codeonedigest.wordpress.com/

** GET IN TOUCH **
Email us on [email protected]

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: https://bit.ly/3NeWQ8U
Youtube:    / @codeonedigest  
Twitter:   / codeonedigest  
Facebook:   / codeonedigest  
Instagram:   / codeonedigest  
Linkedin:   / codeone-digest-10b418255  
Reddit:   / codeonedigest  
Github: https://github.com/codeonedigest
Website: https://codeonedigest.wordpress.com/
Tumblr: https://www.tumblr.com/codeonedigest
Pinterest:   / codeonedigest