Skip to content

Code from SendBird assessment. The sample code belongs to SendBird.

Notifications You must be signed in to change notification settings

n-davis/web-basic-sample

Repository files navigation

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

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 ./src/js/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.

About

Code from SendBird assessment. The sample code belongs to SendBird.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published