- Stable version of Node.js
- Kubernetes cli kubectl
- A local instance of kubernetes running, like minikube
- Nginx-ingress controller
- Docker engine
- Skaffold
- Update your OS hosts file to point ticketing.dev to your local Kubernetes cluster IP address
- Create local environment variables
- JWT_KEY, it can be any string
- STRIPE_KEY, it need to be a valid stripe developer secret key (test key will do)
- You might need to build each service's Docker image once manually before skaffold can do it for you
- Go to each service project root and run:
docker build -t {your_docker_id}/{service_name} .
- Then push it to docker hub running:
docker push {your_docker_id}/{service_name}
- Go to each service project root and run:
- At the project root folder run skaffold dev
Based on the outstanding course on Node.js microservices by Stephen Grider.