Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

QuickBlox JavaScript Tutorials

Working code samples for adding QuickBlox in-app chat to JavaScript and React web applications. Each tutorial is a runnable project — clone the folder, paste your App Credentials into the config file, run npm start, and open the dev server in two browser tabs to see two users chat in real time.

The QuickBlox JavaScript SDK is the same library across all of these tutorials. What changes is the surrounding stack: a static HTML page versus a React + TypeScript app, and within React, the build tool you already use.

Tutorials

Read these in order if you're new to QuickBlox — each one assumes the concepts from the one before it. If you already know the basics, skip straight to the topic you need.

  1. One-to-One Chat — private 1:1 real-time messaging between two authenticated users with persistent history
    • Vanilla JavaScript — plain HTML page, the SDK is loaded from a pinned CDN URL, no build step
    • React — React 19 + TypeScript with two build-tool variants (Vite primary, Webpack alternative)

More topics — group chat, file sharing, typing indicators, read receipts, and backend token authentication — will be added here.

How the projects are organized

Folders are named by topic, not by tutorial number — one-to-one-chat instead of 01-one-to-one-chat. The order is set by the numbered list above, so adding or rearranging tutorials does not change URLs that have already been picked up by search engines.

Each project folder contains:

  • A README.md that names the result and lists the run steps
  • A package.json that declares all dependencies
  • A config file (js/config.js for vanilla, src/config.ts for React) — the only file you need to edit
  • A tutorial-assets/screenshots/ folder with the images used in the published tutorial

Before you start

Sign up for a free QuickBlox account, create an application in the Dashboard, and add two test users on the Users tab. You'll copy the App Credentials (Application ID, Authorization Key, Authorization Secret, Account Key) and both users' logins, passwords, and numeric IDs into the config file of whichever tutorial you run.

Resources