Skip to content
Branch: master
Find file History
Latest commit 2acd273 Jun 10, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src web basic sample update Nov 27, 2018
.babelrc add renewed basic web sample May 23, 2018
.eslintrc.js add renewed basic web sample May 23, 2018
.prettierignore add renewed basic web sample May 23, 2018
.prettierrc add renewed basic web sample May 23, 2018
README.md
chat.html add renewed basic web sample May 23, 2018
index.html update Github repo path Jun 11, 2019
package.json - remove unused folder Jan 15, 2019
server.js add renewed basic web sample May 23, 2018
webpack.config.js add renewed basic web sample May 23, 2018

README.md

SendBird JavaScript Web Basic Sample

This is full screen chat sample like Slack using the SendBird SDK for desktop browsers.

  1. Demo
  2. Run the sample
  3. Customizing the sample

Demo

You can try out a live demo from the link here.

If you want to legacy basic sample used jQuery, you can find the Legacy tag.

Run the sample

  1. Install packages

Require that you have Node v8.x+ installed.

npm install
  1. Run
npm start

Customizing the sample

If you want to put some changes into the sample, you should build it using webpack.

  1. Install packages

Require that you have Node v8.x+ installed.

npm install
  1. Modify files If you want to change APP_ID, change APP_ID in const.js to the other APP_ID you want.
    You can test the sample with local server by running the following command.
npm run start:dev
  1. Build the sample When the modification is complete, you'll need to bundle the file using webpack. The bundled files are created in the dist folder.
    Please check webpack.config.js for settings.
npm run build

The npm start command contains npm run build. Check the scripts part of the package.json file.

You can’t perform that action at this time.