Skip to content

This project is a chat application consisting of a frontend client and a backend server. It provides real-time messaging features and can be deployed locally using Docker, Docker Compose, or Kubernetes.

Notifications You must be signed in to change notification settings

Milanshub/Chat-Docker-TS-project-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application

This project is a chat application consisting of a frontend client and a backend server. It provides real-time messaging features and can be deployed locally using Docker, Docker Compose, or Kubernetes.

Prerequisites

Before you start, ensure you have the following installed:

  1. Node.js: Version v20.11.0

    • Install Node.js from nodejs.org.
    • Check version: node -v
  2. Docker: Version 27.1.1

    • Install Docker from docker.com.
    • Check version: docker --version
  3. Kubernetes: Version v1.30.2

    • Install Kubernetes using kubectl.
    • Check version: kubectl version
  4. kubectl: Version v1.30.2

  5. Docker Compose: Not installed

    • To install Docker Compose, follow the instructions at docker.com.

Build and Deploy Locally Without Docker

  1. Clone the Repository:

    git clone https://github.com/Milanshub/Chat-Docker-TS-project-5.git
    cd Chat-Docker-TS-project-5
    
    
  2. Build the Backend Server: cd server npm install npm run build

  3. Build the Frontend Client: cd ../client npm install npm run build

  4. Start the Backend Server: cd ../server npm start

  5. Start the Frontend Client: cd ../client npm start

Build and Deploy Locally with Docker Compose

  1. Ensure Docker and Docker Compose are Installed.

  2. Build and Start the Application: docker-compose up --build

Kubernetes deployment

  1. Ensure Kubernetes and kubectl are Installed.

  2. Apply Kubernetes Configuration: kubectl apply -f k8s/

  3. Forward Ports to Access Services Locally: kubectl port-forward svc/client-service 3000:80 -n chat-demo-app kubectl port-forward svc/server-service 5000:5000 -n chat-demo-app

About

This project is a chat application consisting of a frontend client and a backend server. It provides real-time messaging features and can be deployed locally using Docker, Docker Compose, or Kubernetes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published