Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit a2d6003

Browse files
committed
Renamed Quickstart to Get-Started
1 parent f1b7941 commit a2d6003

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ WORKDIR ${HOME}
3030

3131
RUN mkdir -p ${HOME}/java/src/main/java/com/start
3232
COPY ./java/pom.xml ${HOME}/java/
33-
COPY ./java/src/main/java/com/start/Quickstart.java ${HOME}/java/src/main/java/com/start/
33+
COPY ./java/src/main/java/com/start/Getstarted.java ${HOME}/java/src/main/java/com/start/
3434

3535
RUN sed -i "s/x.x.x/${DRIVER_VERSION}/g" ${HOME}/java/pom.xml
3636

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Quickstart Java
1+
# Get-Started Java
22

33
Repository to help getting started with MongoDB Java driver connecting to MongoDB Atlas.
44

55
## Information
66

7-
This Quickstart project uses [MongoDB Java driver](https://mongodb.github.io/mongo-java-driver/) version 3.11.1 by default. Although you can change the driver version, the provided code example was only tested against the default version of MongoDB driver. There is no guarantee that the code sample will work for all possible versions of the driver.
7+
This Get-Started project uses [MongoDB Java driver](https://mongodb.github.io/mongo-java-driver/) version 3.11.1 by default. Although you can change the driver version, the provided code example was only tested against the default version of MongoDB driver. There is no guarantee that the code sample will work for all possible versions of the driver.
88

99
## Pre-requisites
1010

@@ -39,10 +39,10 @@ In order to execute the code example, you need to specify `MONGODB_URI` environm
3939
4040
## Execution Steps
4141
42-
1. Run the compiled C# code example by following below steps:
42+
1. Run the compiled Java code example by following below steps:
4343
* `cd ~/java`
4444
* `mvn package`
45-
* `java -cp ./target/start-1.0-SNAPSHOT.jar com.start.Quickstart`
45+
* `java -cp ./target/start-1.0-SNAPSHOT.jar com.start.Getstarted`
4646
4747
### Change driver version from within the Docker environment
4848
@@ -61,4 +61,4 @@ export MONGODB_URI="mongodb+srv://usr:pwd@new.mongodb.net/dbname?retryWrites=tru
6161

6262
## About
6363

64-
This project is part of the MongoDB Quickstart code examples. Please see [quickstart-readme](https://github.com/mongodb-developer/quickstart-readme) for more information.
64+
This project is part of the MongoDB Get-Started code examples. Please see [get-started-readme](https://github.com/mongodb-developer/get-started-readme) for more information.

java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<configuration>
3939
<transformers>
4040
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
41-
<mainClass>com.start.Quickstart</mainClass>
41+
<mainClass>com.start.Getstarted</mainClass>
4242
</transformer>
4343
</transformers>
4444
</configuration>

java/src/main/java/com/start/Quickstart.java renamed to java/src/main/java/com/start/Getstarted.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
import static com.mongodb.client.model.Projections.excludeId;
2828
import static com.mongodb.client.model.Sorts.descending;
2929

30-
public class Quickstart {
30+
public class Getstarted {
3131

3232
public static void main(final String[] args) {
3333
String mongoURI = System.getenv("MONGODB_URI");
3434

3535
MongoClient mongoClient = MongoClients.create(mongoURI);
3636

37-
MongoDatabase database = mongoClient.getDatabase("quickstart");
37+
MongoDatabase database = mongoClient.getDatabase("getstarted");
3838
MongoCollection<Document> collection = database.getCollection("java");
3939

4040
collection.drop();

0 commit comments

Comments
 (0)