An microservices app created with Express.js, Typescript, MongoDB, BullJS, Docker, Kubernernetes, Ingress-NGINX & NATS.
requirements
To install INGRESS-NGNIX
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.1/deploy/static/provider/cloud/deploy.yaml
To run all services at parallel
$ skaffold dev
To set a JSON web token secret
$ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<YOUR_JWT_SECRET>
To set a STRIPE secret (needed for payments
service)
Create your STRIPE account and get the secret
$ kubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=<YOUR_STRIPE_SECRET_KEY>
Check all created secrets
$ kubectl get secrets
We need to edit the host
file of our computer to identify our custom route in dev environment.
Add 127.0.0.1 ticketing.dev
to the host file
You may face this error in Chrome Browser
or Chromium
based browsers
To fix the error ->
- Click on the active tab of the browser
- Type
thisisunsafe
- The error should gone by now