# Setting Up MongoDB

Setting Up MongoDB: Setup: MongoDB, mongosh and Compass, Another Way: A Free Cluster on MongoDB Atlas, Setup for the Exercises: Node.js, Git and VS Code.

Updated: November 19, 2026

1. [Setup: MongoDB, mongosh and Compass](https://www.ask-codey.com/lessons/mongodb-setup-mongodb-mongosh-and-compass) (Novice): Install MongoDB Community Server, mongosh and Compass on Windows with winget or on a Mac with Homebrew, check that the server is running in the background, and connect to it with mongosh at mongodb://localhost:27017.
2. [Another Way: A Free Cluster on MongoDB Atlas](https://www.ask-codey.com/lessons/mongodb-setup-atlas-free-cluster) (Novice): Make a free MongoDB Atlas cluster in the browser, with a database user and your IP address on its access list, connect mongosh and Compass to it with its mongodb+srv connection string, and stay on the Free tier so nothing costs money.
3. [Setup for the Exercises: Node.js, Git and VS Code](https://www.ask-codey.com/lessons/mongodb-setup-nodejs-git-and-vs-code) (Novice): Install VS Code, the LTS version of Node.js and Git on Windows or macOS, check them with --version, make a free GitHub account, tell Git your name and email, and make the mongodb-course folder every exercise goes in.

Source: https://www.ask-codey.com/courses/mongodb-in-depth/topics/mongodb-setup
