samar-hassan / Chattin

Real time chat application using Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chattin

Chat app using Django with DRF

Python 3.10 django Black code style Postgres

Prerequisites

License: MIT

Description

This chat app is developed using Django. On the frontend side, it uses jquery to manage different actions.

Setup

  1. Assuming you have python 3.10 installed, create a python 3.10 virtual environment

    virtualenv -p python venv
    source venv/bin/activate
  2. Install python dependencies

    pip install -r requirements/local.txt
  3. Install javascript dependencies

    npm install
  4. Configure static files

    python manage.py collectstatic
  5. Configure database

    create a postgresql database named chattin and then create a file named local_settings.py in the config/settings folder and add following lines:

        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.postgresql_psycopg2',
                'NAME': 'chattin',
                'USER': 'postgres',
                'PASSWORD': 'postgres',
                'HOST': 'localhost',
                'PORT': '5432',
            }
        }

    update the credentials based on your settings, then run:

    python manage.py migrate
  6. Run Project

    npm run dev

About

Real time chat application using Django

License:MIT License


Languages

Language:Python 58.1%Language:HTML 23.6%Language:JavaScript 12.7%Language:Shell 3.6%Language:CSS 1.4%Language:SCSS 0.6%