A chat application built with Next.js (for client) and Socket.io (for server), setup for Kubernetes engine.
This project is featured in three-part series:
- Deploy Socket.io to Kubernetes - Part 0: Overview
- Deploy Socket.io to Kubernetes - Part 1: Chat Application
- Deploy Socket.io to Kubernetes - Part 2: Infrastructure
- Application
- Node.js
- NPM
- Yarn
- Install dependencies (for
client
andserver
) by usingyarn install
- Infrastructure
- Terraform CLI
kubectl
(Kubernetes control CLI)
- Run
yarn start
- Run
yarn dev
Go to client
and/or server
folder, then run docker build -t [image tag] .
- Go to
terraform-k8s
folder. - Run
terraform init
. - Run
terraform plan
to show Terraform plans.
- Install
kubectl
. - Go to
terraform-k8s
folder. - Run
kubectl apply $(ls *.yaml | awk ' { print " -f " $1 } ')
.