SendBird JavaScript Web Basic Sample
This is full screen chat sample like Slack using the Sendbird SDK for desktop browsers.
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
- Install packages
Require that you have Node v8.x+ installed.
node-sasspackage requires XCode developer tools (MacOS only) and Node.js version matching. If you have any trouble in the installation, see https://www.npmjs.com/package/node-sass.
- Run
Customizing the sample
If you want to put some changes into the sample, you should build it using webpack.
- Install packages
Require that you have Node v8.x+ installed.
node-sasspackage requires XCode developer tools (MacOS only) and Node.js version matching. If you have any trouble in the installation, see https://www.npmjs.com/package/node-sass.
- Modify files
If you want to change
APP_ID, changeAPP_IDin./src/js/const.jsto the otherAPP_IDyou want.
You can test the sample with local server by running the following command.
- Build the sample
When the modification is complete, you'll need to bundle the file using
webpack. The bundled files are created in thedistfolder.
Please checkwebpack.config.jsfor settings.
The
npm startcommand containsnpm run build. Check the scripts part of the package.json file.