See the diagram below:
- git clone https://github.com/costanzopa/i-root.git
- Install docker [https://docs.docker.com/docker-for-windows/install/]
- Install Kubernetes [https://kubernetes.io/docs/tasks/tools/install-kubectl/]
- Install Skaffold [https://skaffold.dev/]
-
Make sure that you have running kubernetes.
-
Install ingress-nginx [https://kubernetes.github.io/ingress-nginx/deploy/]
-
Docker for mac:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.2/deploy/static/provider/cloud/deploy.yaml
-
Host File Setup
- MacOs/Linux /etc/hosts
- Windows C:\Windows\System32\Drivers\etc\hosts
Add the following line
127.0.0.1 iroot.dev
- Create jwt secret
kubectl create secret generic jwt-secret --from-literal=JWT_KEY=YOUR_JWT_SECRET_SIGN
- Create stripe secret
kubectl create secret generic stripe-secret --from-literal STRIPE_KEY=sk_test_aT0anyxkIhr71W8kQNWbcrqr001yyUZk1r
skaffold dev
http://iroot.dev
Type in browser thisisunsafe