Skip to content

rajat-0206/chatapp_materate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple chatting application made using Django. Here users are added to some groups. User can send a query in that group, reply to a query and can reply to a reply as well. We have used two models Groups and Messages and for stroing user details we have used the default user model of the django framework. One for group which has a many to many relation with the User model. The message group has a foreign key relation with the Group model which tells that from which group this message belong. There is another foreign key linking between User model and Messages model which tells that from which user sent this message. Then for implementing reply part, we have created a foreign key self linking field which is null by default. If a user reply to some message then that message get linked to the replied message throgh the reply field. The replied message will contain the foreign key reference to the message for which it has been replied.

We also have made UI for the project. The first page will be a login page and when user login he will be taken to chatting home page which will contain all his groups and messages. He can send a new message to the groups or can reply to any message.

Credentials

We have seven users with there own username and password. For testing purpose you can use the following credentails

  • Username - rajat
  • Password - mapple1205
Some more usernames are -
  • ranjan
  • arora
  • agarwal
  • luv
  • mayank
  • abhinay
The password for all the accounts is same mapple1205

Steps to install dependency

Python 3.x should be installed

pip install -r requirements.txt

Steps to run the project

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Steps to view project

  1. After running the project visit 127.0.0.1:8000
  2. Use the credential with username rajat to login.
  3. Chatting home page will be displayed. You can send message to any group and can reply to any messages as well.
  4. To login into another account, first logout and then use any of the registed user to login again.



Made with 💓 by Rajat Shrivastava

About

Simple chatting application for MateRate application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published