https://github.com/shubhamv108/spring-boot-webflux-reactive-mongo-docker-kubernetes
https://github.com/shubhamv108/spring-boot-webflux-reactive-mongo-docker-kubernetes
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shubhamv108/spring-boot-webflux-reactive-mongo-docker-kubernetes
- Owner: shubhamv108
- License: apache-2.0
- Created: 2022-06-11T05:50:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T19:00:35.000Z (over 3 years ago)
- Last Synced: 2025-03-24T17:53:54.530Z (7 months ago)
- Language: Java
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
### Build
```./gradlew build```### RUN
```./gradlew bootRun```### Docker
```docker run shubham01/student:latest```### Kubernetes
#### Apply
```kubectl apply -f k8s.yaml```#### Install Ingress Controller
```kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml```### Curl
#### [GET] - HealthZ
```
curl --location --request GET 'http://127.0.0.1:8080/healthz'
```
#### [PUT] - Student
```
curl --location -g --request PUT 'http://127.0.0.1:8080/StudentDetails' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "student1",
"age": 33,
"address": "Mumbai, India",
"subjects": [
{
"maths": 98
},
{
"physics": 66
}
]
}'
```#### [GET] - StudentByName
```
curl --location -g --request GET 'http://127.0.0.1:8080/StudentDetails/getData.htm?studentName=student1' \
--header 'Content-Type: application/json' \
--header 'Cookie: 9ccebc14eb9cddce7578730a7186ddc7=2be7f9038043918ffde20bd6f2d25367' \
--data-raw '{
"name": "Shubham",
"age": 27,
"address": "Kormanagala, Bengaluru"
}'
```
#### [GET] - HealthZ
```
curl --location --request GET 'http://127.0.0.1:8080/healthz'
```### Postman Collection
Import file ```Student.postman_collection.json``` into Postman.### ToDo
#### Fix
- Logs
- PMD Code Analyze Report
- Swagger API Documentation or use Open API