{"repo":"bwaldvogel/mongo-java-server","free":true,"listed":false,"github":"https://github.com/bwaldvogel/mongo-java-server","clone":"git clone https://github.com/bwaldvogel/mongo-java-server.git","description":"Fake implementation of MongoDB in Java that speaks the wire protocol.","language":"Java","stars":289,"topics":["mongodb","netty","java","in-memory"],"license":"BSD-3-Clause","category":"data-pipelines","readme_excerpt":"MongoDB Java Server # Fake implementation of the core [MongoDB][mongodb] server in Java that can be used for integration tests. Think of H2/HSQLDB/SQLite but for MongoDB. The [MongoDB Wire Protocol][wire-protocol] is implemented with [Netty][netty]. Different backends are possible and can be extended. In-Memory backend ## The in-memory backend is the default backend that is typically used to fake MongoDB for integration tests. It supports most CRUD operations, commands and the aggregation framework. Some features are not yet implemented, such as transactions, full-text search or map/reduce. Add the following Maven dependency to your project: Example ### Example with SpringBoot ### H2 MVStore backend ## The [H2 MVStore][h2-mvstore] backend connects the server to a MVStore that can either be in-memory or on-disk. Example ### PostgreSQL backend ## The PostgreSQL backend is a proof-of-concept implementation that connects the server to a database in a running PostgreSQL 9.5+ instance. Each MongoDB database is mapped to a schema in Postgres and each MongoDB collection is stored as a table. Example ### Building a \"fat\" JAR that contains all dependencies ## If you want to build a version that is not on Maven Central you can do the following: 1. Build a \"fat\" JAR that includes all dependencies using \" ./gradlew shadowJar \" 2. Copy build/libs/mongo-java-server-[version]-all.jar to your project, e.g. to the libs directory. 3. Import that folder (e.g. via Gradle using testCompile fileTre","default_branch":null,"files":null,"tree":[],"storefront":"/r/bwaldvogel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bwaldvogel/mongo-java-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}