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.
- User registration and login
- OTP verification for login and password recovery
- Sending and receiving messages between users
- Retrieving previous chat profiles and messages
- 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
- Admin Panel:
/admin/ - Authentication:
/api/v1/auth/ - Chat:
/api/v1/chat/ - Message:
/api/v1/message/
- 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
- GET
/api/v1/message/chatprofile<str:pk>: Get all users you've chatted with (use chat_id aspk) - GET
/api/v1/message/chat/<str:pk>: Fetch all messages in a specific chat (use chat_id aspk) - POST
/api/v1/message/message: Send a message