Kajol-Kumari / InfluMart

One point solution for influencers-brands
https://influmart.netlify.app/
MIT License
16 stars 22 forks source link

[Discussion] A way Brands can talk to influencers #3

Closed Kajol-Kumari closed 3 months ago

Kajol-Kumari commented 4 months ago

How can this be implemented in the platform

Hemu21 commented 4 months ago

Does we need to create the proposal overview in the pr for this?

Kajol-Kumari commented 4 months ago

Its more like proposing the low level solution, should we create our own messaging service or should we integrate with any free available bot and how

Hemu21 commented 4 months ago

@Kajol-Kumari With considering all the aspects. I had found a solution for this. We can create a collection to store the requests with fields brand_Id, user_id, request status, time stamp. user is able to accept the request. we use any payment gatway integration for paying money. If user accepted and the brand is genuine then they can communicate. For that communication I suggest to build our own messaging service using socket.Io why because currently we are investing money on rapid api. we need to consider the budget also. It is a open source so contributor will take care of building it. after launching the app based upon the responses. we can update the app. then we can update the our messaging service or we can use available messaging services like Twilio Programmable Chat etc. So we can take the benefits of opensource and make the app successful.

I hope you like this plan. Please tell me you opinion.

Kajol-Kumari commented 4 months ago

hmm, i am also tending to create our own messaging service, but If we go ahead with this approach then task bifcurcation of the tasks, can you share what should be the action items in sequence here?

Hemu21 commented 4 months ago

This is for messaging service:

  1. Database Schema: Set up collections for users, messages, and conversations.
  2. WebSocket Server: Implement real-time communication with Socket.IO.
  3. Message Storage: Store and retrieve messages in MongoDB.
  4. API Server: Develop endpoints for message and conversation management.
  5. Frontend Integration: Build a user interface for messaging and integrate WebSocket.

1. Collections

Set Up WebSocket Server Steps

Implement Message Storage and Retrieval Steps

Message Storage:

Message Retrieval:

@Kajol-Kumari This is a overview with actions items in sequence. If it is ok then let me know. I will create pr as it is a discussion of level1.

Kajol-Kumari commented 3 months ago

hmm, granularity is still missing but yeah, good way to start, you can document it in a markdown file with issue bifurcation in the same file and raise the pr