ingaia-chat

1.8.23 • Public • Published

AngularJS Chat with SignalR

Front-End

  • npm install
  • Dev: npm start
  • Prod: npm run build

Development setup (Imob Project)

  • Clone the project inside Gaia/src/web/ Image 1

  • Change the chat script path Gaia/src/web/vendor.json

    Image 2

    If you are using default css, you need to add the stylesheet path Image 3

    You can also use the sass file to set your color scheme (only when not using ingaia-chat.min.css from vendor.json)

    Image 4

  • Initializing chat needs to call global instance passing the arguments:
    The first argument are data of user, and the second are data of properties or the default message

    window.inGaiaChat_API.inviteToChat(
      {
        id: 123,
        name: 'User Name',
        productTag: 'valuegaia',
        role: '',
        status: 3,
        company: { id: 123, name: 'inGaia' },
      },
      {
        message: 'Teste message',
        productTag: -1,
        origin: 'radar-clientes',
      }
    );
    window.inGaiaChat_API.start(data);

    Image 4

    • To start a chat between two users with a property subject
    • property object should looks like:
      {
        "reference": "AP2566",
        "neighborhood": "Jardim América",
        "city": "São José dos Campos",
        "smallpicture": "http://..."
      }
    window.inGaiaChat_API.inviteToChat(data.user, property);
  • Updating package (after publishing on npm)

    • Change package version, correspondig to the last published version, inside package.json "ingaia-chat": "x.x.x"
    • Then you need to run npm update ingaia-chat

Publishing via NPM

Dependencies

  • hubs (provided from backend)
  • signalr (included as dependencies in package.json)

Readme

Keywords

none

Package Sidebar

Install

npm i ingaia-chat

Weekly Downloads

1

Version

1.8.23

License

ISC

Unpacked Size

7.08 MB

Total Files

233

Last publish

Collaborators

  • ricardo-teixeira
  • dhfuzari
  • conradoramalho
  • pethersonmoreno
  • levisfront