Skip to content

Sagar-PH/WebChat-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 Web Chat Application

A real-time web chat application built with Django, Redis, and Docker.


📦 Project Setup

You can run this Web Chat Application in two different ways:

  • Method 1: Using Docker 🐳
  • Method 2: Running directly on your system ⚙️

🐳 Method 1: Run Using Docker

Option A: Use Prebuilt Docker Image (Recommended)

You can also run the application using a prebuilt private Docker image hosted on GitHub Container Registry (GHCR).

  1. Pull the Docker image:
docker pull ghcr.io/sagar-ph/webapp:latest
  1. Get the docker-compose.yml file in repo and Update the file:
image: ghcr.io/sagar-ph/webapp:latest

Note: Remove or comment out build: . if present.

  1. Start the application:
docker compose up

This will pull and run all required services in Docker containers.


🚀 Clone the Repository (For below Methods)

gh repo clone Sagar-PH/WebChat-App

Option B: Build Docker Image Locally

  1. Make sure Docker is installed on your system.
  2. Open a terminal in the project directory.
  3. Build the Docker image:
docker build -t webchat-app .

This command will build and create a Docker image for the project.


⚙️ Method 2: Run Directly (Without Docker)

Prerequisites

  • Python 3.x
  • Redis Server

Steps

  1. Install and start the Redis server.
  2. Open a terminal in the project directory.
  3. Install project dependencies:
pip install -r requirements.txt
  1. Run the Django ASGI application:
daphne webchat.asgi:application

🎉 The Web Chat Application is now running!


Made by Sagar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages