Skip to content

A real time chatting application bulit on django, websocket and deployed on AWS EC2 with RDS database having custom DNS name and SSL certificates.

Notifications You must be signed in to change notification settings

Vaishnav88sk/MingleChat-django-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mingle - Django Chat Application - Deployment Guide

This guide explains how to deploy a Django-based chat application on an AWS EC2 instance using Nginx.

Table of Contents

Prerequisites

Before you start, ensure you have the following:

  • AWS EC2 instance with Ubuntu or a similar Linux distribution.
  • SSH access to your EC2 instance.
  • Python 3.x, virtualenv, pip installed.
  • Nginx installed (for production server setup).
  • Gunicorn installed (to serve the Django app).

Installation

  1. Clone the Repository:
git clone https://github.com/Vaishnav88sk/MingleChat-django-web.git
cd MingleChat-django-web
  1. Create a Virtual Environment:
python3 -m venv venv
source venv/bin/activate
  1. Install Dependencies:
pip install -r requirements.txt
  1. Setup Database:
python manage.py migrate

Setup & Configuration

  1. Create a Superuser:
python manage.py createsuperuser
  1. Update Settings for Production:
ALLOWED_HOSTS = ['your-ec2-public-ip', 'your-domain.com','localhost']
  1. Collect Static Files:
python manage.py collectstatic

Running the Application

python manage.py runserver 0.0.0.0:8000

Troubleshooting

  1. Django Static Files:
python manage.py collectstatic
  1. Database Issues:
python manage.py migrate

Visit the website: https://minglechat.duckdns.org

About

A real time chatting application bulit on django, websocket and deployed on AWS EC2 with RDS database having custom DNS name and SSL certificates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published