Bearle / django-private-chat

(Deprecated - Please check out https://github.com/Bearle/django_private_chat2) Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team
ISC License
424 stars 132 forks source link

Setup server & client on single machine #53

Open DineshGuptaa opened 4 years ago

DineshGuptaa commented 4 years ago

Hi All,

I have environments as below: Pyhton: 3.6.8 Djnago: 2.2.12 django-model-utils: 2.6.1 django-braces: 1.12.0 Machine : Windows 10

I wanted to setup this project locally but I didn't get success.

I have setup server and the server using python manage.py run_chat_server . The Server sun without any issue.

After that I setup client and wanted to see the ui but unable to to that. Please guide me how to setup server / client code, because I am seeing dependency in the client code i.e. { "model": "django_private_chat.message", "pk": 2, "fields": { "created": "2017-02-12T11:29:26.369Z", "modified": "2017-02-12T11:29:26.374Z", "is_removed": false, "dialog": 2, "sender": 2, "text": "some text" } }

Client

D:.                       
├───.idea                 
│   └───inspectionProfiles
├───channel_pyclient      
│   └───__pycache__       
├───custom_app            
│   └───migrations 
├───fixtures
├───static
│   ├───css
│   ├───fonts
│   └───js
└───templates
    ├───custom_app
    └───django_private_chat  

Server

    D:.
    ├───.idea                      
    ├───django_private_chat           
    │   ├───management         
    │   │   ├───commands       
    │   │   │   └───__pycache__
    │   │   └───__pycache__    
    │   ├───migrations         
    │   │   └───__pycache__    
    │   ├───static             
    │   │   └───django_private_chat   
    │   │       ├───css        
    │   │       ├───img        
    │   │       └───js         
    │   ├───templates          
    │   │   └───django_private_chat   
    │   └───__pycache__        
    └───web_chat               
        └───__pycache__

Please guide me how may I setup server client locally.

Thanks in advance... :-)