Projects / Product catalog / Before you start
Before you start
You need Docker. MongoDB runs inside a container, and the shell that talks to it, mongosh, is already in the same image:
docker run --name catalog-mongo -p 27017:27017 -d mongo:7
docker exec -it catalog-mongo mongosh catalog
The second command opens an interactive shell connected to a database called catalog. MongoDB creates a database and a collection the first time you write to them, so there is nothing to set up. Everything you type in this project goes into that shell. Keep the same shell open through Phase 3 and Phase 4: a few steps reuse a helper defined in an earlier step, and if you close the shell you only need to paste that helper again.
Each step says what to look for in the result. Your ids, timings and plan details will differ a little.
Your ids, dates and timings will differ a little. The shape of the output is what matters.