提交工单
咨询集成、功能及报价等问题
Here we provide you with a sample application to experience ZEGOCLOUD's In-app Chat, and also describe how to run the sample code.
The following structure shows the subdirectory structure of the In-app Chat sample code:
├── README.md # Description on how to run the sample project
├── index.html
├── package.json
├── public
├── src
│ ├── App.vue # Business component
│ ├── assets # Media resources
│ ├── components # Business component directory
│ ├── components.d.ts
│ ├── env.d.ts
│ ├── main.ts # Entry file
│ ├── utils.ts # Utility class methods
│ ├── store
│ ├── styles # css file directory
├── tsconfig.json # ts config file
├── vite.config.ts # vite config file
Open the utils.ts
file under the src
folder, and modify the configurations with the AppID and ServerSecret you get in the Prerequisites steps and save it.
const appConfig = {
appID: 0, // Contact the ZEGOCLOUD techinical support to get the AppID.
serverSecret: '', // ontact the ZEGOCLOUD techinical support to get the ServerSecret.
};
Run the following command in sequence to start the project by referring to the README.md
file.
npm install # Install dependencies required.
npm run dev # Run the sample project after installing dependencies.