Skip to content

📋 React app to display text from a Kuzzle backend. This code is from a tutorial by Kuzzle, based in Montpellier, France.

Notifications You must be signed in to change notification settings

AndrewJBateman/react-kuzzle-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ React Kuzzle Data

  • App using React to display a simple real-time chat app front end.
  • Future: Kuzzle, a backend with ready-to-use features, is used.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • React frontend

📷 Screenshots

Example screenshot

📶 Technologies

💾 Setup

  • Frontend: npm i to install dependencies then npm start to run app on port localhost:3000
  • Backend: tba

💻 Code Examples

  • App.js function to connect to Kuzzle backend
connect = async () => {
  await kuzzle.connect();
  if (!(await kuzzle.index.exists('chat'))) {
    await kuzzle.index.create('chat');
    await kuzzle.collection.create('chat', 'messages');
  }
  await this.fetchMessages();
  await this.subscribeMessages();
  this.setState({ connected: true });
};

🆒 Features

  • f

📋 Status & To-Do List

  • Status: In work. Frontend working, needs running Kuzzle backend to test
  • To-Do: Add backend

👏 Inspiration

📁 License

  • N/A

✉️ Contact

About

📋 React app to display text from a Kuzzle backend. This code is from a tutorial by Kuzzle, based in Montpellier, France.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages