Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/spring-mongodb
Example Spring Boot and MongoDB
https://github.com/nhatthaiquang-agilityio/spring-mongodb
docker mongodb spring spring-boot spring-test
Last synced: about 1 month ago
JSON representation
Example Spring Boot and MongoDB
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/spring-mongodb
- Owner: nhatthaiquang-agilityio
- Created: 2017-12-29T01:58:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T01:44:45.000Z (about 7 years ago)
- Last Synced: 2024-04-16T07:09:42.262Z (9 months ago)
- Topics: docker, mongodb, spring, spring-boot, spring-test
- Language: Java
- Homepage:
- Size: 504 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring and MongoDB
Write restful api and connect MongoDb
Pagination# Requirements
Install mongodb on local or using docker
Java: JDK 1.8
Maven Build# MongoDB
### Install mongodb on local
Install on Mac OS X machine with homebrew
```
brew install mongodb
```Start MongoDb server
```
$ mongod
```### Install mongodb on docker
```
docker-compose up
```Check mongodb status
```
docker ps
```Connect to mongodb
```
mongo 127.0.0.1:27017
```Check config mongodb
src/main/resource/application.properties# Integration Tests
An integration test based on Spring's RestTemplate