Coder Social home page Coder Social logo

mathczh / chatire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danidee10/chatire

0.0 0.0 0.0 962 KB

:speech_balloon: Real time Chat application built with Vue, Django, RabbitMQ and uWSGI WebSockets.

Home Page: https://danidee10.github.io/2018/01/01/realtime-django-1.html

JavaScript 43.00% Python 34.90% HTML 2.03% Vue 20.07%

chatire's Introduction

chatire

Real time Chat application built with Vue, Django, RabbitMQ and uWSGI WebSockets Django channels.

chatire gif demo

This repo contains the code for my tutorial Realtime django: Build a Chat application with Django, RabbitMQ and Vue.js

The tutorial is split into several parts:

Running the code

Vue

Navigate to the chatire-frontend directory:

cd chatire-frontend

Install the dependencies from npm:

npm install

Run the webpack dev server (starts on localhost:8080):

npm run dev

Django

To get the Django server running:

Install the requirements from pip

pip install -r requirements.txt

Run django's development server (starts on localhost:8000):

python manage.py runserver

RabbitMQ

Chatire uses RabbitMQ to bridge the django application and the uWSGI WebSocket server. The installation process varies. Check the docs on how you can install it for your platform.

WebSocket server

Chatire uses uWSGI as it's websocket server, if you've already installed the requirements from requirements.txt if should already be installed.

You can start it with

uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master

This starts uwsgi with 100 gevent (greenlet) threads. You can increase it if you want to.

You can start the channels local server with:

python manage.py runserver 8081

Acknowledgements

Thanks to @inhit for the Logo!

chatire's People

Contributors

danidee10 avatar ihtiht avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.