Skip to content

learning-continuous-deployment/java-mongodb-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-mongodb-sample

This is a sample application, which uses Java to connect to a Mongo database.

##Prerequisites Make sure, that you have the following software installed:

  • JDK 1.8 or later
  • MongoDb (On OS X you can install it via Homebrew: brew install mongodb)

##Usage The application starts a HTTP server on port 8080 to query and manipulate the database.

Http-Services

  • /getEntries - Returns all entries stored in the database
  • /dropEntries - Removes all entries in the database
  • /addEntry?name=<NAME> - Adds an entry with the specified name

Sidenote: Make sure, that mongod is running (sudo mongod), otherwise you will get an exception.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages