https://github.com/dori-dev/django-chat
Create advance messenger web application with Django.
https://github.com/dori-dev/django-chat
channels chat django django-channels messenger redis
Last synced: about 1 year ago
JSON representation
Create advance messenger web application with Django.
- Host: GitHub
- URL: https://github.com/dori-dev/django-chat
- Owner: dori-dev
- License: mit
- Created: 2022-03-24T14:10:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T14:26:39.000Z (almost 4 years ago)
- Last Synced: 2025-03-30T13:37:15.486Z (about 1 year ago)
- Topics: channels, chat, django, django-channels, messenger, redis
- Language: Python
- Homepage:
- Size: 229 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Chat
Create advance messenger web application with Django.
#
## Tools
- [Django](https://www.djangoproject.com/)
- [Django Channels](https://channels.readthedocs.io/en/stable/)
- [Python](https://www.python.org/)
- [Bootstrap](https://getbootstrap.com/)
- [PostgreSQL](https://www.postgresql.org/)
- [Redis](https://redis.io/)
- [Docker](https://www.docker.com/)
#
# Run Project
## Download Codes
```
git clone https://github.com/dori-dev/django-chat.git
cd django-chat
```
## Install Postgresql
Install postgresql from [here](https://www.postgresql.org/download/).
## Create DataBase
Create a postgres database and set your database name, user, password, host and port in `.env` file with change `DB_NAME` `DB_USER` `DB_PASSWORD` `DB_HOST` `DB_POST` variables!
## Install Docker
Install docker from [here](https://docs.docker.com/engine/install/).
## Setup Redis
```
sudo docker run -p 6379:6379 -d redis:5
```
## Build Virtual Environment
```
python3 -m venv env
source env/bin/activate
```
## Install Project Requirements
```
pip install -r requirements.txt
```
## Migrate Models
```
python3 manage.py makemigrations chat
python3 manage.py migrate
```
## Add Super User
```
python3 manage.py createsuperuser
```
## Collect Static
```
python3 manage.py collectstatic
```
## Test Project
At first, install chrome [webdriver](https://chromedriver.chromium.org/) for test with selenium.
then copy `chromedriver` binary file in `env/bin/` path
## Run Test
```
python3 manage.py test
```
## Run Server
```
python3 manage.py runserver
```
## Open On Browser
Home Page
[127.0.0.1:8000](http://127.0.0.1:8000/)
Admin Page
[127.0.0.1:8000/admin](http://127.0.0.1:8000/admin)
#
# Links
Download Source Code: [Click Here](https://github.com/dori-dev/django-chat/archive/refs/heads/master.zip)
My Github Account: [Click Here](https://github.com/dori-dev/)