A support chat application for a company.
We assume you have the following installed already:
- Python 3 here
- SQLlite Database - Automatically created by Django application
- 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!