https://github.com/apulbere/rhea
reactive web app with mongodb
https://github.com/apulbere/rhea
java-11 mongodb spring-boot-2 webflux
Last synced: 3 months ago
JSON representation
reactive web app with mongodb
- Host: GitHub
- URL: https://github.com/apulbere/rhea
- Owner: apulbere
- Created: 2018-11-09T20:43:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T22:45:20.000Z (over 7 years ago)
- Last Synced: 2025-08-24T14:40:53.544Z (11 months ago)
- Topics: java-11, mongodb, spring-boot-2, webflux
- Language: Java
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Prerequisites
Install Mongo
```
docker pull mongo
docker run -p 27017:27017 --name hello-mongo -d -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=password -e MONGO_INITDB_DATABASE=quote1 mongo
```
### Example of queries
* `POST /quotes/bulk` [hestia](https://github.com/apulbere/hestia)
* fetch all
```
curl -X POST \
http://localhost:8080/quotes/query \
-H 'Postman-Token: eeaafb77-e4c4-4cd4-babb-0d9087163a2e' \
-H 'cache-control: no-cache' \
-d '{
quotes {
id
source
author
text
}
}'
```
* fetch by id
```
curl -X POST \
http://localhost:8080/quotes/query \
-H 'Postman-Token: 589bb6a3-2372-43db-8ca1-cdf25dd7e72a' \
-H 'cache-control: no-cache' \
-d '{
quotes(id: "5bd33ab5f2bd89048a72f845") {
id
text
}
}'
```