8000 GitHub - fraigo/python-chat-api: A REST API build in Python/Django and a Web client using Vue.js
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fraigo/python-chat-api

Repository files navigation

Python Chat API + Web Client

A Python/Django REST API to manage a chat application. Also, there is a sample Web Client to consume the API endpoint.

Chat API Features

  • Manage messages, senders and recipients
  • Built-in "Echo" auto-responder Service, extensible to new services
  • Configured to be deployed in Heroku
  • Python modules:
    • django: Full featured Web framework
    • gunicorn: Python WSGI HTTP Server for UNIX
    • django_heroku: Heroku module for deployment integration

Chat Web Client Features

  • Web based Front-end static client
  • Google Login integration
  • Send and Receive messages to any contact by email.
  • Web technologies:
    • Vue.js: JavaScript Framework for web applications
    • Vuetify: Material Design UI Component Framework
    • gapi : Google API client for Javascript
    • web workers: To receive and send API request in a separate process

Development

Install python packages

pip install -r requirements.txt

Prepare database

Create database schema

python manage.py migrate

Create a super user

python manage.py createsuperuser

Run the web service (Debug mode)

To run with DEBUG activated:

export DEBUG=1

python manage.py runserver

Run the web service (Production mode)

To run with DEBUG disabled:

unset DEBUG

python manage.py collectstatic

python manage.py runserver

Access the web service