Hey Nelson ,Thanks a lot for every thing really you've helped a lot and I'm waiting for mongodb with spring boot, there is only 1 problem I didn't find the docker-compose.yaml file I've already created one of my own , but just for every one else if you could possibly share it 🙏🙏🙏.
Here is the docker-compose.yaml file, if you do come across mapping or indentation errors, make sure to use 2 spaces rather than a tab wherever you get an error in the terminal: version: “3.8” services: mongodb: image: mongo container_name: mongodb ports: - 27017:27017 volumes: - data:/data mongo-express: image: mongo-express container_name: mongo-express restart: always ports: - 8081:8081 volumes: data: {} networks: default: name: mongodb_network
On top of that nowadays db.student.insert(student) will trow: insertDeprecationWarning: Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite.
42:47 db.student.insert(student) will trow: insertDeprecationWarning: Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite. On top of that db.student.count() will thow: DeprecationWarning: Collection.count() is deprecated. Use countDocuments or estimatedDocumentCount.
docker-compose.yaml text information below: (*note*: I left out the "environment" fields because a number of comments say they had trouble with those fields): version: “3.8” services: mongodb: image: mongo container_name: mongodb ports: - 27017:27017 volumes: - data:/data mongo-express: image: mongo-express container_name: mongo-express restart: always ports: - 8081:8081 volumes: data: {} networks: default: name: mongodb_network
Thanks for your videos! I just have one question. You've said that there will be a link to the docker-compose.yaml file in your description, yet it is not there. Thanks once again! Great explanations.
Great teacher but so many ads and breaks inbetween like come on. Plus the files you mentioned aren't even to be seen, despite so many people mentioning this in the comments. How disappointing.
The yaml part and explanation was not good enough, this should be a beginner course but you passed very quickly on yaml part and now I have been wasting my time to fix problems. Environment set up is one the most problematic area of software engineering, please mind that.
Great Tutorial, I know MySQL database very will but for Mongo DB my previous knowledge was how to use it with Spring Boot only, now I had a really good idea how to do Basic CRUD queries and so on. Thanks Nelson
Example files are missing, I re-created similar ones from internet resources but the examples shown by the author on the screen need tweaking in order to make docker compose file working. This video is 90% advertisement of the commercial course. Zero info about working with docker on Windows (you need to enable experimental mode, adapt docker desktop settings). Waste of time. You will learn trivial things not too useful in real life.
i like your tutorial video amigo! as a chinese and english not so good, your speed are just good for me . Your teching way are very suit for 0 pre-knowleage learner to learn MongoDB or Java. BTW, Your Java tutorial also helpful and good for new learner .
thanks for the course :) is there any way to upload/interact with the data on mongo express/docker using scripts in Visual Studio instead of the terminal?
hi brother , I am unable to connect to mongoexpress from local host url ,although my port mapping is same and I can see containers created from docker desktop