Skip to content

samar-hassan/Chattin

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published