An Implementation of a Post creating app with comments as a microservice for each feature. Services communicate in Async Architecture. An Event Bus created from scratch with express.
An Implementation of a Post creating app with comments as a microservice for each feature. Services communicate in Async Architecture. An Event Bus created from scratch with express.
This project is build with following languages and framework
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps. If this all is overwhelming you can try NOdockerNOkuber branch and follow the guidelines from that readme file.
- Text editor
- Docker
- Kubernetes
- minikube
- skaffold
-
Clone the repo to your machine
-
Make sure you're at master branch.
-
Move toward the Root directory .
cd posting_app_microservice_nodejs
- Dockerize each service
docker build . -t <username>/<servicename>
- start minikube
minikube start --driver=docker
- Apply deployment configs
cd /infra/k8s
kubectl apply -y .
Start skaffold developemnt environment and track file changes automatically.
skaffold dev
Visit http://<minikube_ip>/ Or Setup posts.com host for minikube_ip at /etc/hosts the Visit http://posts.com/
minikube ip (shows minikube_ip)
-
This is how it look like after moving on the page.
-
Post any post
-
Post any comment