Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivaprasadreddy/spring-boot-todolist
Demo spring-boot application to try out new features.
https://github.com/sivaprasadreddy/spring-boot-todolist
docker docker-compose kubernetes maven postgres skaffold spring-boot vuejs2
Last synced: 3 months ago
JSON representation
Demo spring-boot application to try out new features.
- Host: GitHub
- URL: https://github.com/sivaprasadreddy/spring-boot-todolist
- Owner: sivaprasadreddy
- Created: 2020-05-06T11:15:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T12:52:06.000Z (8 months ago)
- Last Synced: 2024-05-29T04:25:10.359Z (8 months ago)
- Topics: docker, docker-compose, kubernetes, maven, postgres, skaffold, spring-boot, vuejs2
- Language: Java
- Homepage:
- Size: 520 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-todolist
A minimal SpringBoot application to try out new features.
[![CI Build](https://github.com/sivaprasadreddy/spring-boot-todolist/actions/workflows/maven.yml/badge.svg)](https://github.com/sivaprasadreddy/spring-boot-todolist/actions/workflows/maven.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sivaprasadreddy_spring-boot-todolist&metric=alert_status)](https://sonarcloud.io/dashboard?id=sivaprasadreddy_spring-boot-todolist)## Run using DockerCompose
```shell script
./run.sh start
./run.sh stop
./run.sh restart
```## Running on Kubernetes
```shell script
cd kind
./create-cluster.sh
cd ..
./run.sh k8s_deploy
# Access http://localhost:30090
./run.sh k8s_undeploy
./kind/destroy-cluster.sh
```
### kubectl commands```shell
kubectl apply -f k8s/config.yaml
kubectl apply -f k8s/postgresdb.yaml
kubectl apply -f k8s/todolist.yamlkubectl apply -f k8s/
kubectl scale --replicas=2 deployment spring-boot-todolist-deployment
kubectl create deployment spring-boot-todolist --image sivaprasadreddy/spring-boot-todolist -o yaml --dry-run=client > k8s/deployment.yaml
kubectl create service clusterip spring-boot-todolist --tcp 80:8080 -o yaml --dry-run=client > k8s/service.yaml
kubectl port-forward svc/spring-boot-todolist 9090:8080
kubectl create configmap spring-boot-todolist --from-file=./k8s/application.properties
kubectl create configmap todolist-k8s-configmap --from-file=./application.properties
kubectl get configmap spring-boot-todolist -o yaml
```## Development using Skaffold
```shell script
skaffold dev --port-forward --skip-tests=true
```