Skip to content

Prago2001/chat-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

A support chat application for a company.

How do I get started?

Prerequisites

We assume you have the following installed already:

  • Python 3 here
  • SQLlite Database - Automatically created by Django application

Setup

  • Ensure pip is installed using pip --version. Ensure python version from the output is >=3.7.
  • Install virtualenv pip install virtualenv.
  • Clone the repo and navigate into the top-level directory.
  • Create a virtual environment (venv) for installing Python packages, then activate it and install all required packages:
virtualenv venv
source venv/bin/activate
cd chat-application/
pip install -r requirements.txt
  • Run the following commands:
python manage.py makemigrations
python manage.py migrate
  • Populate the db with the entries from CSV file:
python manage.py runscript read_csv
  • A 'users.txt' file will get created. Refer to it while logging in. A three letter word is the username in the text file.
  • The password for all users is: branch12
  • Finally run the server: python manage.py runserver.
  • 'users.txt' contains usernames of customers.
  • Login of agents: Usernames-> agent-1,agent-2, Password -> branch12
  • Open two (private)windows of a browser and type localhost:8000
  • In one login using agents username and in the second browser login using the username mentioned in users.txt.
  • Go to chats tab and start chatting!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published