-
user can register. after registering, user will be automatically logged in, we will store login info to localStorage (for login persistance) and redirected to inbox page
-
user can login and after login we will save the login information in localStorage (for login persistance) and redirect user to inbox
-
load sidebar messages from conversation API and implement load more feature
-
load specific conversation messages when user clicks on it and implement load more feature
-
when user sends message, a) if conversation id is present, update conversation table and also inserts into messages table b) if conversation id is missing, get conversation id using filter _ if conversation id exists, then update that conversation and add to messages table _ if conversation id is missing, insert that conversation and add to messages table
-
sidebar conversation list scroll - sort by latest first and when user loads more, bring previous "10 conversations sorted by latest first" and pushed into the conversations array
-
messages list scroll - bring "10 latest messages per request sorted by oldest first". when user loads more, "bring previous 10 messages sorted again by oldest first" and unshift into the array
- register
- login
- get list of users other than requesting user
- update conversation
- insert conversation
- find conversation
- list conversation
- list messages by conversation id
- send message (insert messages into messages table)
HTML TEMPLATE | SERVER TEMPLATE | CODE RUN | CONTACT |
---|---|---|---|
Get HTML template | Get SERVER template | How to run | Contact us |
You can find the raw HTML template of the Chat Application with RTK Query from the "html_template" folder.
You can find the raw SERVER template of the Chat Application with RTK Query from the "server" folder.
Please follow the below instructions to run this branch in your machine:
-
Login to the GitHub account on which you have been granted access to this repository. If you have purchased the course but didn't get the access to this repository, please contact our support team. You will find contact details below.
-
Clone this repository -
git clone https://github.com/Learn-with-Sumit/think-in-a-redux-way.git
-
Go to the cloned project directory
cd think-in-a-redux-way
-
Checkout/switch to branch 9.2
git checkout 9.2
-
Install dependencies
npm i
-
Install VS Code Live Server plugin & start the server.
npm start
-
Your app should be available in http://localhost:3000
Please follow the below instructions to run server in your machine:
- Go to the server directory
cd server
- Install dependencies
npm i
- Start the server
npm start