-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathrequirement.txt
66 lines (46 loc) · 1.53 KB
/
requirement.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
1) User has to login in order to chat
2) After login, on homepage there will two options:
i) Group chat button
- Clicking on the button will redirect user to /chat url
ii) Personal chat button
- User will see list of all the user (also indicate who are online)
- User will select an user from the list to whom he/she wants to chat
- User will get redirect to chat/{receiver-id}
URLs:
To create: group-chat GET
To store: group-chat POST
To edit: group-chat/{messageid} PUT
To delete: group-chat/{messageid} DELETE
Controller
To create: chat/{username} GET
To store: chat POST
To edit: chat/{messageid} PUT
To delete: chat/{messageid} DELETE
Controllers:
- GroupController
- ChatController
Models:
- GroupChat
- Chat
Database:
- Table: chat_rooms - id room_type[private, group, public] created_at updated_at
- Table: room_members - id room_id user_ids
- Table: messages - id room_id sender_id message created_at updated_at
- Table: receivers - id message_id receiver_id read_at
Private chat room: Can have between two users only
Group chat room: Create by a user, he/she can add other users into the group
Public chat room: A open group that any members can use
chat_room has many room_members
chat_room has meny messages
messages has one sender
messages has many receivers through chat
Pendig:
1) User Avatar
2) Improve design (responsive)
3) User is writting **
4) Joined/left room
Security
1) Exlclude js, css, php
Advance
1) Allow basic HTML
2) Allow smiley