Giter VIP home page Giter VIP logo

angular-chat-push-notifications's Introduction

Angular Chat Notifications example

This example shows how to add push notifications to and Angular chat app:

Login Chat

Jump straight into the code or read the accompanying step-by-step guide here on our blog.

Technology

This demo uses:

  • Angular
  • TypeScript
  • CometChat JavaScript SDK
  • Firebase

Running the demo locally

To run the demo follow these steps:

  • Head to the CometChat dashboard (you'll need to create a free account if you haven't already)
  • From the dashboard, create a new app called "angular-chat"
  • Once created, click the button Explore
  • Copy the APP id that was generated with the new app, we'll use this later
  • Download the repository here or by running git clone https://github.com/cometchat-pro-tutorials/angular-one-on-one-chat.git
  • Install all dependencies by running npm install in the project folder
  • Go to src/environments/environment.ts file and paste the APP id
  • Go to Firebase console and click Add Project and create a new project
  • When your project is created click Add new app and select web
  • Copy all the config values to src/environments/environment.ts
  • Inside firebase-messaging-sw.js, replace 'YOUR-SENDER-ID' with the actual value from Firebase
  • Start the application by running npm start in the aplication folder
  • Go to http://localhost:4200

Useful links

Other examples

angular-chat-push-notifications's People

Contributors

tahash avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.