Very simple microservices applications for making posts and adding comments. For educational purpose only.
- NodeJS (v15)
- ReactJS
- Docker
- Kubernetes
- Minikube
- Skaffold
- VirtualBox (add some issues on MacOS with VMware)
Prerequisites: Make sure you have Docker, NodeJS, Minikube, VirtualBox and Skaffold installed.
- Run Docker
- Start minikube:
minikube start --vm=true --vm-driver=virtualbox
- Run
eval $(minikube docker-env)
so that minikube pulls images locally and not from DockerHub. Note: After running this command, make sure to run all following from the same shell session. - Run
minikube ip
and use the returned IP address by adding a new entry in your/etc/hosts
file such that:xxx.xxx.xx.xxx posts.com
, wherexxx.xxx.xx.xxx
is the IP address then save the file. - From the root folder, run:
skaffold dev
- Open a browser and visit the
posts.com
URL or runopen posts.com
from a terminal session