Skip to content

"WebChat" a real-time chat application project written in Django, Channels and design along with Tailwind CSS for WebRTC and Secure System Design courses at UNINA

License

Notifications You must be signed in to change notification settings

Szymon-Budziak/WebChat_django_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebChat

"WebChat" a real-time chat application project written in Django, Channels and design along with Tailwind CSS for WebRTC and Secure System Design courses at UNINA.

The structure of the project

Project consists of 3 main parts:

  • core directory where is the logic for the main page, login, signup and logout
  • room directory, inside it there is a logic for rooms and chat where user can join and have a chat with someone else inside the specific room
  • webchat directory where are the django initial files that are created while running django-admin startproject command

After running a server (prerequisites are below) we should have such a website where we can sign up or log in:

main_page

When we are logged in we can enter rooms:

rooms

After entering one of the rooms we can have a chat with other users:

chat

When we log out we are redirected to the main page.

Prerequisites

Before you start, you have to install all requirements. Installation process on Linux/macOS and Windows:

1. Clone repository by typing:

git clone https://github.com/Szymon-Budziak/WebChat_django_chat.git

2. Enter WebChat_django_chat folder:

cd WebChat_django_chat/

3. Create new virtual environment for this project and activate it:

  • Linux/macOS machine:
python -m venv venv
source venv/bin/activate

(if python is not working try using python3)

  • Windows machine:
py -m venv venv
venv\Scripts\activate

this will create new activated virtual environment with venv name.

4. Install required packages:

pip install -r requirements.txt

If this command is now working, install django and channels in command line:

pip install django channels==3.0.5

5. Enter webchat folder and make migrations to create necessary databases for models:

  • Linux/macOS machine:
python manage.py migrate

(if python is not working try using python3)

  • Windows machine:
py manage.py migrate

6. Create superuser to have access to admin page:

  • Linux/macOS machine:
python manage.py createsuperuser

(if python is not working try using python3)

  • Windows machine:
py manage.py createsuperuser

Now you are ready to explore Django code and run server, enter dashboard website http://localhost:8000:

  • Linux/macOS machine:
python manage.py runserver

(if python is not working try using python3)

  • Windows machine:
py manage.py runserver

About

"WebChat" a real-time chat application project written in Django, Channels and design along with Tailwind CSS for WebRTC and Secure System Design courses at UNINA

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published