Code Monkey home page Code Monkey logo

messenger-app's Introduction

messenger-app

Messenger App

Installation

  • Install Node and NPM

    • OSX:

      brew install node
    • Linux :

      curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
      sudo apt-get install -y nodejs
  • Install project dependencies

    • From the directory where package.json is placed, run:

      npm install
    • You can ignore these messages:

      npm notice created a lockfile as package-lock.json. You should commit this file.
      npm WARN [email protected] requires a peer of react@^15.3.0 but none is installed. You must install peer dependencies yourself.
      npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

Start the client

  • set the REACT_APP_BACKEND_URL value:

    export REACT_APP_BACKEND_URL='http://localhost:5000'
  • run the client using npm:

    npm start

messenger-app's People

Contributors

alfred82santa avatar

Watchers

 avatar James Cloos avatar Aleix Paradell Navarro avatar

messenger-app's Issues

Incoming message raises an error

TypeError: rmc.method is undefined

dispatch
src/js/models.js:249

  246 | },
  247 | 
  248 | dispatch: function (rmc) {
> 249 |   let res = rmc.method.split('.', 1);
  250 |   switch(res[0]) {
  251 |     case "room":
  252 |       this.get('rooms').dispatch(this, res[1], rmc.params);

connect/<
src/js/websocket.js:48

  45 | 
  46 |   $(this._ws).on('message', function (event) {
  47 |     let msg = JSON.parse(event.originalEvent.data);
> 48 |     $(self).trigger('message', msg);
  49 |   })
  50 | }
  51 | 

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.