Skip to content

rcprcp/MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MongoDB Test Program

First try working with MongoDB in Java. I have been testing this with Mongo Atlas. Work in progress, please read this code before trying to run it. :)

You'll need to configure the environment variables to fit your setup - you'll need the cluster ID, username and password.

export MONGODB_CLUSTER_ID=cluster0.blahblah
export MONGODB_PASSWORD=mypassword
export MONGODB_USERNAME=myusername

the usual Maven incantation should be enough to build the runnable jar.

git clone https://github.com/rcprcp/MongoDB
cd MongoDB
mvn package
java -jar target/MongoDB-1.0-SNAPSHOT-jar-with-dependencies.jar

TODO:

  • Need to finish setting up the logger; remove the System.out.println's

About

Mongodb test program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages