Skip to content

RobinHaider/blog-micoservices-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Microservices

A simple blog app for demonstrating Microservices with node js, running with docker and kubernetes. Using async communicaton with custom event-bus.

Features

  • User can add post (Post Service)
  • User can add comment on post (Comment Service)
  • User can see all the post and comments (Query Service)
  • User can't have "orange" in their comment, if they do it will be flagged. (Moderation Service)

Services

  • Comments Service
  • Post Service
  • Event-bus
  • Moderation Service
  • Query Service

Tech Stack

Client: React, Axios

Server: Node, Express

Deployment: Docker, Kubernetes, Skaffold

Kubernetes: Deployment, ClusterIp Service, Load balancer, Ingress-nginx,

Installation

Clone the repository. Install docker and enable kubernetes. Install Skaffold Cli.

Edit your host file (if windows "C:\Windows\System32\drivers\etc\hosts"). Add this

  127.0.0.1 posts.com

Then inside blog-micoservices-node/infra/ingress-nginx/ run

  kubectl apply -f ingress-controller.yaml

Then in root folder run

  skaffold dev

Now visit

  posts.com:81

Screenshots

App Screenshot

About

A simple blog app using node js microservices and react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages