Chat app using Django with DRF
License: MIT
This chat app is developed using Django. On the frontend side, it uses jquery to manage different actions.
-
Assuming you have python 3.10 installed, create a python 3.10 virtual environment
virtualenv -p python venv source venv/bin/activate
-
Install python dependencies
pip install -r requirements/local.txt
-
Install javascript dependencies
npm install
-
Configure static files
python manage.py collectstatic
-
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
-
Run Project
npm run dev