Giter Site home page Giter Site logo

mongodb-developer / get-started-java Goto Github PK

View Code? Open in Web Editor NEW
2.0 11.0 4.0 24 KB

Repository to help getting started with MongoDB Java driver connecting to MongoDB Atlas

License: Apache License 2.0

Dockerfile 5.83% Java 83.66% Shell 10.51%
java mongodb mongodb-atlas docker tutorial get-started

get-started-java's Introduction

Get-Started Java

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

Information

This Get-Started project uses MongoDB Java driver version 4.5.1 (sync) 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.

Pre-requisites

Docker

Have Docker running on your machine. You can download and install from: https://docs.docker.com/install/

MongoDB Atlas

In order to execute the code example, you need to specify MONGODB_URI environment variable to connect to a MongoDB cluster. If you don't have any you can create one by signing up MongoDB Atlas Free-tier M0.

Execution Steps

Execute the helper shell script followed by the MongoDB URI that you would like to connect to.

./get-started.sh "mongodb+srv://usr:[email protected]/dbname?retryWrites=true"

To use a different driver version, specify the driver version after the MongoDB URI. For example:

./get-started.sh "mongodb+srv://usr:[email protected]/dbname?retryWrites=true" 4.3.0

Tutorials

About

This project is part of the MongoDB Get-Started code examples. Please see get-started-readme for more information.

Disclaimer

This software is not supported by MongoDB, Inc under any of their commercial support subscriptions or otherwise. Any usage is at your own risk.

get-started-java's People

Contributors

sindbach avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.