Skip to content

About

Simple Spring Data MongoDB demo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

spring-mdb-demo-101

Architecture Overview

This is a very basic demo that showcases Spring Data MongoDB. This is a RESTFul app which exposes 2 GET endpoints:

/load : This endpoint loads 3 users data into mongodb

/users : This endpoint returns the list of users in the database

The app uses an embedded mongodb so no need for an additional setup.

Pre-Req

The only requirement here is Java 21. I highly suggested you use SDK Man to manage your local Java versions.

How too run the app

On the command line simply run:

  1. Clone this repo
git clone https://github.com/schabiyo-eng/spring-mdb-demo-101.git
  1. cd into the root directory
cd spring-mdb-demo-101
  1. Run the app
./gradlew bootRun

Reference Documentation

For further reference, please consider the following sections:

About

Simple Spring Data MongoDB demo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages