Gin+Vue App
info
Make sure you have followed the installation guide before continuing.
(Optional) Chinese usersβ
Chinese users may have network access problems, please run first:
export NETWORK_TYPE=china_network
Step1. Create a Gin+Vue Appβ
hln up gin-hello-world -s gin-vue -i
Get application status:
hln status gin-hello-world
Output looks like this:
π Heighliner application gin-hello-world is ready! access URL: http://gin-hello-world.h8r.site
There are 2 services have been deployed:
β gin-hello-world-frontend
β access URL: http://gin-hello-world.h8r.site
β resource code: https://github.com/coding-org03/gin-hello-world-frontend
β gin-hello-world-backend
β access URL: http://gin-hello-world.h8r.site/api
β resource code: https://github.com/coding-org03/gin-hello-world-backend
There are 4 addons have been deployed:
β argocd
β access URL: http://argocd.h8r.site
β credential: [Username: admin Password: bsj1O-Eg9iJM7fCq]
β nocalhost
β access URL: http://nocalhost.h8r.site
β credential: [Username: admin@admin.com Password: 123456]
β prometheus-stack
β access URL: http://grafana.h8r.site
β credential: [Username: admin Password: prom-operator]
β prometheus URL: http://prometheus.h8r.site [Username: admin Password: heighliner123!], alertManager URL: http://alert.h8r.site [Username: admin Password: heighliner123!]
β loki
Step2. (Optional) Set Domain Routingβ
- Kind
- Cloud
If you are using
h8r.site
, you don't have to do anything.If you are using your own domain name, put the following lines into your
/etc/hosts
:127.0.0.1 gin-hello-world.<your-domain>
127.0.0.1 argocd.<your-domain>
127.0.0.1 nocalhost.<your-domain>
127.0.0.1 grafana.<your-domain>
127.0.0.1 prometheus.<your-domain>
127.0.0.1 alert.<your-domain>
Get your public ingress IP:
kubectl -n ingress-nginx get svc ingress-nginx-controller -o=jsonpath='{.status.loadBalancer.ingress[0].ip}'
Step2. Set domain routing:
If you are using
h8r.site
, Put the following lines into your/etc/hosts
(replace <ingress-ip> with above result):<ingress-ip> gin-hello-world.<your-domain>
<ingress-ip> argocd.<your-domain>
<ingress-ip> nocalhost.<your-domain>
<ingress-ip> grafana.<your-domain>
<ingress-ip> prometheus.<your-domain>
<ingress-ip> alert.<your-domain>If you are using your own domain name, set your domain DNS record to the above ingress IP.
Step3. Access applicationβ
Vue Appβ
View your vue app site gin-hello-world.h8r.site
Git Repositoryβ
View your git repository in GitHub
Cleanupβ
hln down gin-hello-world