https://github.com/ml-opensource/spring-mongo
https://github.com/ml-opensource/spring-mongo
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ml-opensource/spring-mongo
- Owner: ml-opensource
- Created: 2023-10-27T13:43:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T14:36:51.000Z (over 2 years ago)
- Last Synced: 2025-02-25T21:42:54.697Z (over 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mongoDB-java-poc
Provides Sample of How we can integrate MongoDB into a Java project (Spring Boot).
The project can serve as a POC.
## Requirements
* JDK 17
* Any IDE with [lombok](https://projectlombok.org/) plugin installed
## How to code
Import as a java project in an IDE of your choice.
## Working locally
### How to run the app (local with mvn commands)
Run `mvn clean install`. This will generate the appropriate jar, that will be run later on.
Before running the app set the following env variables (take advantage of the IDEA run configuration)
`DATABASE_URI=`
`DATABASE_NAME=`
Run `mvn spring-boot:run -f pom.xml`