Spring Boot Microservice Project with MongoDB in Docker Container | Tutorial with Java Example

preview_player
Показать описание
In this video, we will 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.

Spring Boot is built on the top of the spring framework and contains all the features of the spring. And is becoming a favorite of developers these days because it’s a rapid production-ready environment that enables the developers to directly focus on the logic instead of struggling with the configuration and setup. Spring Boot is a microservice-based framework and making a production-ready application in it takes very little time.

MongoDB is an open-source document database and leading NoSQL database. MongoDB is written in C++. This video will give you complete understanding of running the MongoDB in docker container. MongoDB works on concept of collection and document. MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability.

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.

** TIMESTAMPS **
0:00 Welcome to Spring Boot Microservice with MongoDB Project in container
0:53 Agenda of Video
1:41 Download MongoDB Image using Docker Pull Command
2:44 Docker Container Port Mapping Explained with Diagram
4:33 Start MongoDB in Docker Container
6:14 Connect Compass GUI to MongoDB
7:07 Create New Database using MongoDB Compass GUI
7:38 Insert Data in MongoDB Collection
8:09 Spring Boot Microservice Project Code Walk Through
10:49 Create MongoDB database config in Application properties file
11:32 Build and Run Spring Boot Microservice Application
12:03 Testing GET and POST end points in POSTMAN tool
15:19 Summary

#springboot #microservice #mongodbincontainer

** CodeOneDigest GitHub Repository **

** Tools **

** CHECK OUT OUR OTHER VIDEOS **

** CHECK OUR PLAYLISTS **
Docker Containers Complete Tutorial
GITHUB Repository Tutorial | Complete Guide to GITHUB for Beginners

** 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:
Don’t forget to subscribe!

** OUR WEBSITE **

** GET IN TOUCH **

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Рекомендации по теме
Комментарии
Автор

That was a really good step by step tutorial! I was wondering, do you have another video or any source/steps that I can follow to having everything (app and mongodb) inside one container from a docker compose file and how can I execute these crud requests?

willsonGK
Автор

how to do this with oracle or postures dB. also my dB has 200GB of data

vlogssumitagarwal
join shbcf.ru