GithubHelp home page GithubHelp logo

sachnaror / chatapi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 36 KB

This Django Chat App demonstrates real-time communication using Django Channels and WebSockets. It's a showcase project for those interested in building live interactive features into their web applications, leveraging the power of Django and Redis.

Python 100.00%
chat chat-application chatbot chatgpt-api

chatapi's Introduction

Django Chat App Project (Using Channels)

This project is a basic real-time chat application built using the Django framework and Django Channels. It showcases the use of WebSockets for real-time communication between clients and server.

Getting Started

These instructions will guide you through setting up the project on your local machine for development and testing purposes.

Prerequisites

Before you start, ensure you have installed:

  • Python 3.8 or higher
  • Redis 5.0 or higher

Setting Up the Development Environment

  1. Clone the Repository

    git clone https://github.com/sachnaror/ChatAPI
    cd ChatAPI
  2. Create and Activate a Virtual Environment

    • For Unix or MacOS:

      python3 -m venv venv
      source venv/bin/activate
    • For Windows:

      python -m venv venv
      .\venv\Scripts\activate
  3. Install the Requirements

    pip install -r requirements.txt
  4. Database Migrations

    Apply the database migrations to your local database.

    python manage.py migrate
  5. Run the Redis Server

    Ensure the Redis server is running on your local machine. This project assumes Redis is running on its default port (6379).

    redis-server
  6. Start the Django Development Server

    python manage.py runserver
  7. Access the Application

    Open your web browser and navigate to http://localhost:8000 to start using the chat application.

Acknowledgments

  • Django Channels for providing the real-time WebSocket communication framework.
  • Redis for the efficient messaging and storage solution.

chatapi's People

Contributors

sachnaror avatar

Stargazers

Al-hasan ebraheem avatar

Watchers

 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.