Giter Site home page Giter Site logo

chat-socketio-rails's Introduction

My Simple Chat App

This app is intended to show a simple chat functionality using Socket.io in addition with Ruby on Rails and Angular2.

The structure of the project is very simple:

  • client-side: front-end side build in angular which allows users to interact with the application. Also communicate with socket-io-server to listen for incomming messages. All the information is send and request via a Rails API.
  • socket-io-server: listen and broadcast messages from Redis, a in-memory database which storage keys with an optional durability.
  • rails-api-server: back-end side build in rails which send and request data via an API. It communicates with Redis to storage new messages.

Because Rails is not an event-based server is not recommended to use it having real time applications. That's why Redis is so important, give you the communication between your data and the socket-io-server. This article explain with more details.

How to run the app locally

Make sure you have all the components up and running. Please go to the readme pages in every case.

Live example

https://gmunumel-chat-client-side.herokuapp.com/

License

Licensed under MIT

chat-socketio-rails's People

Contributors

gmunumel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bontgoy

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.