https://github.com/adudko/spring-boot-with-mongodb-in-action
Example of implementing CRUD operations for MongoDB in Spring Boot applications
https://github.com/adudko/spring-boot-with-mongodb-in-action
crud-operations docker-compose-infra docker-images example-app mongo-database open-api restful-api spring-boot spring-cloud
Last synced: 2 months ago
JSON representation
Example of implementing CRUD operations for MongoDB in Spring Boot applications
- Host: GitHub
- URL: https://github.com/adudko/spring-boot-with-mongodb-in-action
- Owner: aDudko
- License: mit
- Created: 2025-03-10T21:17:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-16T18:32:59.000Z (over 1 year ago)
- Last Synced: 2025-03-16T19:41:24.718Z (over 1 year ago)
- Topics: crud-operations, docker-compose-infra, docker-images, example-app, mongo-database, open-api, restful-api, spring-boot, spring-cloud
- Language: Java
- Homepage: https://hub.docker.com/r/anatolydudko/spring-boot-with-mongodb-in-action
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot with MongoDB in Action
**Example of implementing CRUD operations for MongoDB in Spring Boot applications**
## Overview
The application is designed as an internal microservice with no public access to it and no user interface.
[API documentation](http://localhost:8080/swagger-ui/index.html#/) will be available once the application is started
## Technologies
- `Java` - version `21`
- `Maven` - for building the application
- `Spring Boot` - version `3.4.3`
- `Spring Cloud` - version `2023.0.3`
- `Spring Boot Actuator` - it's for real-world applications
- `Spring Boot Maven Plugin` - for create Docker-Image
- `Docker` - containerization
- `Docker-Compose` - infrastructure
- `MongoDB` - NoSQL database
## Structure of the project
```
spring-boot-with-mongodb-in-action/
├── src/main/
| ├── java/com/dudko/example/
| | ├── controller/ # domain level of requests and controllers
| | ├── domain/ # persistent domain level and repositories
| | ├── model/ # service level of the domain, used in business logic
| | ├── service/ # business logic
| ├── resources/ # configs
├── compose.yml # docker-compose file
├── pom.xml # artifact of Maven
├── postman_collection.json # collection of requests for Postman
```
## How to try this project?
```sh
docker-compose -f compose.yml up
```
### Author:
Anatoly Dudko