Skip to content

sidh02/mongoDBWithSpringTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Install MongoDB Install Maven

To run

mvn clean install mvn spring-boot:run

Migrations

Eager migrations can be found in the migrations package.

Test Data

CreateLotsOfPeople populates fake people into Mongo DB with unique IDs and random combinations of first and last names.

Sample JSON

{ "_id":"1000000001", "firstName":"Albus", "lastName":"Dumbledore", "wearsGlasses":true, "username":"dumbledore" }

Lunch And Learn Tasks

** Implement Update for PersonController (with tests) ** Implement Search for PersonController (with tests) ** Ensure an index is unique (username in Person) ** Write an integration test for unique username ** Do a migration via Java (add sibling field to Person) ** Do a lazy migration (create migration that only runs when a Person is retrieved)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published