- A user should be able to initiate conversations with another user based on the username.
- A user should be able to have conversations with multiple users
- A history of all messages should be stored for reference by the user later
- This is a fully frontend application without any backend or data store.
- We are using mock data to get contacts and conversation.
- For recieving messages we have created a polling where last message of contacts will be marked as latest for simulation. Clicking on new message will append the last message to chat.
- While sending messages also it will be pushed to existing chat data but will not be persistant as there is not database.
- For every 20 seconds a flag called isLatest is going to get true for each contacts in order to simulate incoming messages.
- React
- Typescript
- Redux Toolkit
- Material UI
- Axios
- Mockoon
1. Clone the repository
2. Import the mock_db.json file in Mockoon.
3. Start mockoon server.
4. Navigate to src/api/baseapi.ts and replace the baseURL with mockoon server url
3. npm install
4. npm run dev - For runing development build
5. npm run build - For creating production build
6. npm run preview - For running production build
Made with 🖤 by Trishnangshu Goswami