Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django ChatApp

A simple Django-based ChatApp that allows users to register, log in, send messages, and retrieve past conversations. The app provides RESTful API endpoints for authentication and chat functionalities.

Features

  • User registration and login
  • OTP verification for login and password recovery
  • Sending and receiving messages between users
  • Retrieving previous chat profiles and messages

Installation

  1. Clone the repository:
    git clone <repo_url>
    cd <repo_directory>
    

pip install -r requirements.txt

python manage.py migrate

python manage.py createsuperuser

python manage.py runserver

Base URLs

  • Admin Panel: /admin/
  • Authentication: /api/v1/auth/
  • Chat: /api/v1/chat/
  • Message: /api/v1/message/

Authentication Endpoints

  • POST /api/v1/auth/register: Register a new user
  • POST /api/v1/auth/login: Login a user
  • POST /api/v1/auth/verify-otp: Verify OTP for login
  • POST /api/v1/auth/resend-otp: Resend OTP for login
  • POST /api/v1/auth/forgot-password: Request password reset
  • GET /api/v1/auth/users: List all users

Messaging Endpoints

  • GET /api/v1/message/chatprofile<str:pk>: Get all users you've chatted with (use chat_id as pk)
  • GET /api/v1/message/chat/<str:pk>: Fetch all messages in a specific chat (use chat_id as pk)
  • POST /api/v1/message/message: Send a message

About

API for peer to peer chat

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages