馃弫 Quick Start
Before we dive into the content, let's ensure that your environment is properly set up.
1. Install Java 21
- Make sure you have Java Development Kit (JDK) version 21 installed.
- You can check if it's installed by running:
Ensure that the output includes
java -version
java 21
. - If it's not installed, download and install it from the official OpenJDK website.
2. Clone the Workshop Repository
- Clone the GitHub repository to your local machine using the following command:
- With ssh:
git clone -b session1 git@github.com:mongodb-developer/mdb-java-workshop.git mdb-java-workshop
- With https:
git clone -b session1 https://github.com/mongodb-developer/mdb-java-workshop.git mdb-java-workshop
- Navigate to the directory:
cd mdb-java-workshop
3. Create a MongoDB Atlas Account
- Visit MongoDB Atlas and sign up for a free account.
- Follow the instructions to create a new project and a MongoDB cluster.
- Make sure to note down your cluster's connection details; you'll need them to connect your application.
- Load your cluster with your sample dataset.
Once you've completed these steps, you'll be ready to follow along with the workshop!