This is a gin + vue
example app, include user manage , rbac permision,
menu generator and kubernetes manage.
This Demo Project Using These Component, Thanks for these project:
- gin
- vue-element-admin
- mysql
- redis
- kubernetes
- swagger
- prometheus-metrics
- cors
- casbin
- gorm
- zap
The project not batter structure, beacuse I'm a beginner, 😄.
├── LICENSE
├── Makefile # simple run commad
├── README.md
├── docker-compose.yaml # run this project on local
├── go.mod
├── go.sum
├── server # golang backend api-server
└── website # vue frontend project
pre required need kubernetes, you can use kind create it.
after run this project. nedd docker-compose kubernetes cluster and kubeconfig.
change kubeconfig path:
kubernetes:
# type in or out cluster type
type: out
# type out need kubeconfig path
config: /root/.kube/config
run docker-compose
make run
run backend
cd server
go run main.go --config configs/dev.yaml
run frontend
yarn dev