All Projects → MaBeuLux88 → java-spring-boot-mongodb-starter

MaBeuLux88 / java-spring-boot-mongodb-starter

Licence: Apache-2.0 license
MongoDB Blog Post: REST APIs with Java, Spring Boot and MongoDB

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to java-spring-boot-mongodb-starter

Mongoc.jl
MongoDB driver for the Julia Language
Stars: ✭ 46 (-19.3%)
Mutual labels:  mongodb-driver
Mongojs
Node.js module that implements the offical mongo api
Stars: ✭ 1,782 (+3026.32%)
Mutual labels:  mongodb-driver
mango
Use mongo-go-driver like mgo
Stars: ✭ 37 (-35.09%)
Mutual labels:  mongodb-driver
Egg Mongo Native
MongoDB egg.js plugin using native driver.
Stars: ✭ 69 (+21.05%)
Mutual labels:  mongodb-driver
Mongo.migration
On-the-fly migrations with MongoDB C# Driver
Stars: ✭ 99 (+73.68%)
Mutual labels:  mongodb-driver
Mongo Perl Driver
Perl driver for the MongoDB
Stars: ✭ 203 (+256.14%)
Mutual labels:  mongodb-driver
Mongo Cxx Driver
C++ Driver for MongoDB
Stars: ✭ 792 (+1289.47%)
Mutual labels:  mongodb-driver
MongoDBLink
MongoDB driver for Mathematica
Stars: ✭ 18 (-68.42%)
Mutual labels:  mongodb-driver
Mongo Php Library
MongoDB PHP library
Stars: ✭ 1,391 (+2340.35%)
Mutual labels:  mongodb-driver
Mongo Swift Driver
The official MongoDB driver for Swift
Stars: ✭ 242 (+324.56%)
Mutual labels:  mongodb-driver
Avocado
Strongly-typed MongoDB driver for Rust
Stars: ✭ 70 (+22.81%)
Mutual labels:  mongodb-driver
Erlmongo
Erlang driver for MongoDB with gridfs that works with maps and proplists
Stars: ✭ 90 (+57.89%)
Mutual labels:  mongodb-driver
Mongodb.entities
A data access library for MongoDB with an elegant api, LINQ support and built-in entity relationship management
Stars: ✭ 204 (+257.89%)
Mutual labels:  mongodb-driver
Mongo Hhvm Driver Unsupported
[Archive] Experimental MongoDB driver for HHVM - This Repository is NOT a supported MongoDB product
Stars: ✭ 55 (-3.51%)
Mutual labels:  mongodb-driver
minigdx
Minimalist Game Framework using Kotlin Multiplatform
Stars: ✭ 136 (+138.6%)
Mutual labels:  showcases
Phalcon Mongodb Odm
MongoDB ODM for Phalcon framework for new mongodb php extension with query builder and rich functionality
Stars: ✭ 42 (-26.32%)
Mutual labels:  mongodb-driver
Java Specialagent
Automatic instrumentation for 3rd-party libraries in Java applications with OpenTracing.
Stars: ✭ 156 (+173.68%)
Mutual labels:  mongodb-driver
online-training
Online Training website using ASP.Net Core 2.0 & Angular 4
Stars: ✭ 26 (-54.39%)
Mutual labels:  mongodb-driver
ArchitectNow.ApiStarter
Sample ASP.NET Core 2 API Setup used by ArchitectNow for corresponding workshop presentations
Stars: ✭ 35 (-38.6%)
Mutual labels:  mongodb-driver
Mongodb Plugin
MongoDB Plugin for Java
Stars: ✭ 236 (+314.04%)
Mutual labels:  mongodb-driver

Quick Start Java & MongoDB Project

Supported versions:

  • Java 8 to 15
  • Spring boot 2.4.2
  • MongoDB 4.4.3
  • MongoDB Java driver 4.1.1
  • Maven 3.6.3
  • Swagger 3.0.0

MongoDB Atlas

Commands

  • Start the server in a console with mvn spring-boot:run.
  • If you add some Unit Tests, you would start them with mvn clean test.
  • You can start the end to end tests with mvn clean integration-test.
  • You can build the project with : mvn clean package.
  • You can run the project with the fat jar and the embedded Tomcat: java -jar target/java-spring-boot-mongodb-starter-1.0.0.jar but I would use a real tomcat in production.

Swagger 3

Features showcase

This project showcases several features of MongoDB:

  • MongoDB multi-document ACID transactions for 3 functions. See MongoDBPersonRepository.saveAll().
  • MongoDB Aggregation pipeline. See MongoDBPersonRepository.getAverageAge().
  • Implementation of basic CRUD queries. See MongoDBPersonRepository.java.
  • MongoDB typed collection with automatic mapping to POJOs using codecs: See ConfigurationSpring.java.
  • How to manipulate correctly ObjectidId across, the REST API, the POJOs and the database itself. See the main trick in Person.java.

And some other cool stuff:

  • You can change the default Spring Boot logo by adding a banner.txt file in your properties.
  • You don't have to use Spring Data MongoDB. The MongoDB driver is more flexible and already provides everything you need to code efficiently and optimise your queries correctly.

Author

  • Maxime Beugnet @ MongoDB.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].