This example shows how to build an anonymous group chat with Angular:
Jump straight into the code or read the accompanying step-by-step guide here on our blog.
This demo uses:
- Angular
- TypeScript
- CometChat JavaScript SDK
- Download the repository here or by running
git clone https://github.com/cometchat-pro-samples/Angular-group-chat.git
- Install all dependencies by running
npm install
in the project folder - Go to
src/environments/environment.ts
file and fill in a valid api key (authOnly scope is enough) and application key - Start the application by running
npm start
in the aplication folder - Go to http://localhost:4200
- By default it uses the 'supergroup' that is already created in the ComeChat account. If you want to use a different one go to
src/environments/environment.ts
and change the value of the groupId property.