Skip to content

maxmax1992/LiveChat

Repository files navigation

Live Chat

Introduction

This livechat program is using Django framework for back end implementation and JQuery for the front end. The backend uses 'channels' library that has several benefits:
Websocket handling,
Background tasks

See deployed version on heroku.

Installing and running locally:

[1] Create python virtualenviroment (3.5.2)
[2] activate the enviroment
[3] execute this command in root folder:

pip install -r requirements.txt

####Now after python libraries are installed:

[4] make db

python manage.py makemigrations

[5] migrate db

python manage.py migrate

If you dont have redis installed locally, install it.
Open new terminal window and execute follwing command:

[6] Execute redis server locally (It's requirement for the channels library to work)

redis-server

In project root:
[7] Run the server

python manage.py runserver

[8] Navigate in your browser to

localhost:/8000

About

Web-chat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published