GithubHelp home page GithubHelp logo

alamorre / chat-engine-marketplace Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 18.0 242 KB

An example project to how to integrate Chat Engine into a marketplace

HTML 9.69% CSS 1.14% JavaScript 89.17%

chat-engine-marketplace's People

Contributors

alamorre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chat-engine-marketplace's Issues

How to use MessageForm instead of MessageFormSocial or ChatFeed in NextJs ??

I have subscribed to your plan thanks for the component, I need your help to lead me on how to use MessageForm instead of MessageFormSocial or chatFeed , because both have problems in my next Js project, I went to the documents and I see MessageForm is the best to use because it's using textarea instead of tag, anyways the problem I'm getting when im trying to import MessageForm is in the screenshot below:
image

Screenshot 2023-07-08 200826

getOrCreateChat

Hi, I have an issue with getOrCreate chat. So basically, I have this piece of code here that has data, and my headers below which store current user credentials.

 const [headers, setHeaders] = useState({
    'Project-ID': 'project_id_number',
    'User-Name': {buyerName},
    'User-Secret': "nope",
  })

  const data = {
    "usernames": [buyerName, res.data.firstName],
    "is_direct_chat": true
  }

  console.log(data)
  getOrCreateChat(headers, data, chat => setChat(chat))

This is similar to the marketplace case but when I run this, I get a 403 error which means I am still unauthorized to getOrCreateChat. Can you help me out? I am just trying to create a chat between two users, knowing the current user's credentials and the username of the current user and other user.

Would appreciate help with this as soon as possible!:)

can't launch project

Hello whenever i run npm install, i get a warning for deprecated dependecies, i tried to --force it but i still get this error :)
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in C:\Users*User*\Desktop\chat-engine-marketplace-master\node_modules\postcss-safe-parser\node_modules\postcss\package.json

createUser Doesn't Work

When going through the tutorial, we followed all of the steps. We cloned the repo, uncommented the lines we were told to uncomment, set both of our .env variables, and ran the commands "yarn" and "yarn start". We are running into an error at the "/" page because of some "cannot access property of undefined" error, which we suspect is because the users aren't being created properly. This leads us to wonder why this is happening, and there may be a problem with the repository that was provided in the guide. Can you please let us know what the fix is for this?

Backend Code

Can you give the backend code as well for this. The link doesn't seem to be working. The one that is mentioned in the blog

Issue with ChatFeed in Next.js - Difficulty with Space Key

I'm currently using the ChatFeed component from the react-chat-engine in my Next.js application. Despite dynamically importing the component to overcome SSR-related issues, I've encountered a persistent problem related to text input. Specifically, when the space key is pressed during text entry, it does not create a whitespace as expected.

To resolve this, I have attempted to set up a JavaScript function that uses an event listener to insert a whitespace each time the space key is pressed. Unfortunately, this workaround is causing further issues and has not successfully resolved the original problem.

I would appreciate any guidance or assistance you could provide to help me address this issue. Please let me know if any additional information is needed from my end to better understand or troubleshoot this problem.

Thank you in advance for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.