Skip to content

pacslab/chatapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatapp

An example chat application

Usage

Please note that you need to obtain your credential for the private registry (see project description) and create a secret named regcred in the chatapp namespace before deploying the example chat application.

The chatapp.yaml file describes the Kubernetes objects for the application. Please use the following commands to deploy the chat application to the namespace chatapp on a Kubernetes cluster.

kubectl create namespace chatapp
kubectl apply -f chatapp.yaml -n chatapp

The frontend service has a NodePort value of 30222. You can access the application by going to the address http://MASTER_IP:30222

Please note that you need to replace MASTER_IP with the IP of your master node.

Artifacts

Backend

The chatapp-backend directory contains the source code for the backend service, which implements a WSGI web application served by uWSGI and is containerized with Docker. The WSGI application implements backend logics and binds to a TCP socket on port 14222.

You can use the following commands to build the Docker image.

cd chatapp-backend
docker build -t harbor.pacslab.ca/eecs4222/chatapp-backend .

Frontend

The chatapp-frontend directory contains the source code for the frontend service, which containerizes and leverages NGINX as both a web server to serve static files and a uWSGI (WebSocket) proxy. The web server listens on port 4222.

You can use the following commands to build the Docker image.

cd chatapp-frontend
docker build -t harbor.pacslab.ca/eecs4222/chatapp-frontend .

Note

Important: This is an example program that is intentionally minimalist and by no means guaranteed to be complete, robust, or follow the best practice.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.1%
  • JavaScript 38.1%
  • HTML 8.6%
  • Dockerfile 1.6%
  • CSS 0.6%